diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-03-27 17:47:33 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-03-27 17:47:33 +0000 |
commit | cec5543c8ce97db218f3dd622d5068eb5a8a4ce3 (patch) | |
tree | b5a86935beb02cb27909b70f02ba30aa2c66ceca /TAO/tao/IIOP_ORB.cpp | |
parent | a610f43815e00ea7d1d6c5a8c00fc2383f46a854 (diff) | |
download | ATCD-cec5543c8ce97db218f3dd622d5068eb5a8a4ce3.tar.gz |
#include the .i file in the .h/.cpp files instead of corba.h
Diffstat (limited to 'TAO/tao/IIOP_ORB.cpp')
-rw-r--r-- | TAO/tao/IIOP_ORB.cpp | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/TAO/tao/IIOP_ORB.cpp b/TAO/tao/IIOP_ORB.cpp index a9ae3dbdb26..f43204a5564 100644 --- a/TAO/tao/IIOP_ORB.cpp +++ b/TAO/tao/IIOP_ORB.cpp @@ -1,16 +1,20 @@ // $Id$ // -// @(#)iioporb.cpp 1.8 95/09/19 +// @(#)iioporb.cpp 1.8 95/09/19 // Copyright 1994-1995 by Sun Microsystems Inc. // All Rights Reserved // -// IIOP: ORB pseudo-object +// IIOP: ORB pseudo-object // // This includes objref stringification/destringification for IIOP // object references. #include "tao/corba.h" +#if !defined (__ACE_INLINE__) +# include "tao/IIOP_ORB.i" +#endif /* ! __ACE_INLINE__ */ + static const char ior_prefix [] = "IOR:"; static const char iiop_prefix [] = "iiop:"; @@ -45,8 +49,8 @@ IIOP_ORB::object_to_string (CORBA::Object_ptr obj, // Marshal the objref into an encapsulation bytestream. (void) cdr.put_char (TAO_ENCAP_BYTE_ORDER); if (cdr.encode (CORBA::_tc_Object, - &obj, 0, - env) != CORBA::TypeCode::TRAVERSE_CONTINUE) + &obj, 0, + env) != CORBA::TypeCode::TRAVERSE_CONTINUE) return 0; // Now hexify the encapsulated CDR data into a string, and @@ -89,7 +93,7 @@ IIOP_ORB::object_to_string (CORBA::Object_ptr obj, // Similarly with the port, because there's no single IIOP port // to which we could default. - static const char digits [] = "0123456789"; + static const char digits [] = "0123456789"; // This only works for IIOP objrefs. If we're handed an objref // that's not an IIOP objref, fail -- application must use an @@ -98,13 +102,13 @@ IIOP_ORB::object_to_string (CORBA::Object_ptr obj, IIOP_Object *obj2; if (obj->QueryInterface (IID_IIOP_Object, - (void **) &obj2) != TAO_NOERROR) + (void **) &obj2) != TAO_NOERROR) { env.exception (new CORBA_DATA_CONVERSION (CORBA::COMPLETED_NO)); return 0; - } + } - if (!obj2) // null? + if (!obj2) // null? return CORBA::string_copy ((CORBA::String) iiop_prefix); CORBA::String_var key; @@ -182,8 +186,8 @@ ior_string_to_object (CORBA::String str, stream.setup_encapsulation (buffer, len); if (stream.decode (CORBA::_tc_Object, - &objref, 0, - env) != CORBA::TypeCode::TRAVERSE_CONTINUE) + &objref, 0, + env) != CORBA::TypeCode::TRAVERSE_CONTINUE) objref = 0; delete [] buffer; |