Classes | |
struct | RefCountServantBase |
class | Servant_var |
Provides a type safe counted reference to servants. More... | |
Typedefs | |
typedef POAManager * | POAManager_ptr |
typedef TAO_Objref_Var_T< POAManager > | POAManager_var |
typedef POAManagerFactory * | POAManagerFactory_ptr |
typedef POA * | POA_ptr |
typedef POAManagerFactory * | POAManagerFactory_ptr |
typedef TAO_ServantBase | ServantBase |
typedef Servant_var< TAO_ServantBase > | ServantBase_var |
typedef ServantBase * | Servant |
typedef TAO_Local_ServantBase | LocalServantBase |
typedef TAO_DynamicImplementation | DynamicImplementation |
typedef CORBA::OctetSeq | ObjectId |
typedef CORBA::OctetSeq_var | ObjectId_var |
typedef CORBA::OctetSeq_out | ObjectId_out |
typedef POA * | POA_ptr |
typedef TAO_Objref_Var_T< POA > | POA_var |
typedef TAO_Objref_Out_T< POA > | POA_out |
typedef ServantManager * | ServantManager_ptr |
typedef POAManager * | POAManager_ptr |
typedef Servant_var< TAO_ServantBase > | ServantBase_var |
typedef POAManager * | POAManager_ptr |
typedef ::TAO_ServantBase | ServantBase |
Functions | |
PortableServer::ObjectId * | string_to_ObjectId (const char *string) |
char * | ObjectId_to_string (const PortableServer::ObjectId &id) |
Utility functions for the other. | |
PortableServer::ObjectId * | wstring_to_ObjectId (const CORBA::WChar *string) |
CORBA::WChar * | ObjectId_to_wstring (const PortableServer::ObjectId &id) |
template<class X, class Y> | |
bool | operator== (Servant_var< X > const &x, Servant_var< Y > const &y) |
Compare two Servant_vars for equivalence. | |
template<class X, class Y> | |
bool | operator!= (Servant_var< X > const &x, Servant_var< Y > const &y) |
Compare two Servant_vars for non-equivalence. | |
Variables | |
::CORBA::TypeCode_ptr const | _tc_ObjectId |
TAO_PortableServer_Export::CORBA::TypeCode_ptr const | _tc_ObjectId |
typedef POAManager* PortableServer::POAManager_ptr |
Definition at line 30 of file Adapter_Activator.h.
typedef TAO_Objref_Var_T<POAManager> PortableServer::POAManager_var |
Definition at line 33 of file Adapter_Activator.h.
typedef POAManagerFactory* PortableServer::POAManagerFactory_ptr |
Definition at line 58 of file Object_Adapter.cpp.
typedef POA* PortableServer::POA_ptr |
Definition at line 43 of file ORT_Adapter.h.
typedef POAManagerFactory* PortableServer::POAManagerFactory_ptr |
Definition at line 51 of file POAManager.h.
Definition at line 66 of file PS_ForwardC.h.
Definition at line 68 of file PS_ForwardC.h.
typedef ServantBase* PortableServer::Servant |
Definition at line 70 of file PS_ForwardC.h.
Definition at line 72 of file PS_ForwardC.h.
typedef TAO_DynamicImplementation PortableServer::DynamicImplementation |
Definition at line 73 of file PS_ForwardC.h.
typedef CORBA::OctetSeq PortableServer::ObjectId |
Definition at line 78 of file PS_ForwardC.h.
typedef CORBA::OctetSeq_var PortableServer::ObjectId_var |
Definition at line 79 of file PS_ForwardC.h.
typedef CORBA::OctetSeq_out PortableServer::ObjectId_out |
Definition at line 80 of file PS_ForwardC.h.
typedef POA* PortableServer::POA_ptr |
Definition at line 88 of file PS_ForwardC.h.
typedef TAO_Objref_Var_T< POA > PortableServer::POA_var |
Definition at line 95 of file PS_ForwardC.h.
typedef TAO_Objref_Out_T< POA > PortableServer::POA_out |
Definition at line 101 of file PS_ForwardC.h.
typedef ServantManager* PortableServer::ServantManager_ptr |
Definition at line 30 of file RequestProcessingStrategy.h.
typedef POAManager* PortableServer::POAManager_ptr |
Definition at line 103 of file Root_POA.h.
Definition at line 170 of file Servant_Base.h.
typedef POAManager* PortableServer::POAManager_ptr |
Definition at line 41 of file Servant_Dispatcher.h.
typedef ::TAO_ServantBase PortableServer::ServantBase |
Definition at line 38 of file Upcall_Wrapper.h.
TAO_NAMESPACE_STORAGE_CLASS PortableServer::ObjectId * PortableServer::string_to_ObjectId | ( | const char * | string | ) |
Definition at line 14 of file PortableServer_Functions.cpp.
References ACE_NEW_RETURN, ACE_OS::memcpy(), and ACE_OS::strlen().
00015 { 00016 // Size of string 00017 // 00018 // We DO NOT include the zero terminator, as this is simply an 00019 // artifact of the way strings are stored in C. 00020 // 00021 CORBA::ULong buffer_size = static_cast <CORBA::ULong> 00022 (ACE_OS::strlen (string)); 00023 00024 // Create the buffer for the Id 00025 CORBA::Octet *buffer = PortableServer::ObjectId::allocbuf (buffer_size); 00026 00027 // Copy the contents 00028 ACE_OS::memcpy (buffer, string, buffer_size); 00029 00030 // Create and return a new ID 00031 PortableServer::ObjectId *id = 0; 00032 ACE_NEW_RETURN (id, 00033 PortableServer::ObjectId (buffer_size, 00034 buffer_size, 00035 buffer, 00036 1), 00037 0); 00038 00039 return id; 00040 }
TAO_NAMESPACE_STORAGE_CLASS char * PortableServer::ObjectId_to_string | ( | const PortableServer::ObjectId & | id | ) |
Utility functions for the other.
Definition at line 43 of file PortableServer_Functions.cpp.
References ACE_OS::memcpy(), and CORBA::string_alloc().
00044 { 00045 // Create space 00046 char * string = CORBA::string_alloc (id.length ()); 00047 00048 // Copy the data 00049 ACE_OS::memcpy (string, id.get_buffer (), id.length ()); 00050 00051 // Null terminate the string 00052 string[id.length ()] = '\0'; 00053 00054 // Return string 00055 return string; 00056 }
TAO_NAMESPACE_STORAGE_CLASS PortableServer::ObjectId * PortableServer::wstring_to_ObjectId | ( | const CORBA::WChar * | string | ) |
Definition at line 14 of file PortableServer_WFunctions.cpp.
References ACE_NEW_RETURN, ACE_OS::memcpy(), and ACE_OS::wslen().
00015 { 00016 // Size of Id 00017 // 00018 // We DO NOT include the zero terminator, as this is simply an 00019 // artifact of the way strings are stored in C. 00020 // 00021 u_int string_length = ACE_OS::wslen (string); 00022 00023 CORBA::ULong buffer_size = string_length * sizeof (CORBA::WChar); 00024 00025 // Create the buffer for the Id 00026 CORBA::Octet *buffer = PortableServer::ObjectId::allocbuf (buffer_size); 00027 00028 // Copy contents 00029 ACE_OS::memcpy (buffer, string, buffer_size); 00030 00031 // Create a new ID 00032 PortableServer::ObjectId *id = 0; 00033 ACE_NEW_RETURN (id, 00034 PortableServer::ObjectId (buffer_size, 00035 buffer_size, 00036 buffer, 00037 1), 00038 0); 00039 00040 return id; 00041 }
TAO_NAMESPACE_STORAGE_CLASS CORBA::WChar * PortableServer::ObjectId_to_wstring | ( | const PortableServer::ObjectId & | id | ) |
Definition at line 44 of file PortableServer_WFunctions.cpp.
References ACE_OS::memcpy(), and CORBA::wstring_alloc().
00045 { 00046 // Compute resulting wide string's length. 00047 CORBA::ULong string_length = 00048 id.length () / sizeof (CORBA::WChar); 00049 00050 // Allocate an extra slot if the id's length is not "aligned" on a 00051 // CORBA::WChar. 00052 if (id.length () % sizeof (CORBA::WChar)) 00053 string_length++; 00054 00055 // Create space - note that this method adds + 1 for the '\0'. 00056 CORBA::WChar* string = CORBA::wstring_alloc (string_length); 00057 00058 // Copy the data 00059 ACE_OS::memcpy (string, 00060 id.get_buffer (), 00061 id.length ()); 00062 00063 // Null terminate the string 00064 string[string_length] = '\0'; 00065 00066 // Return string. 00067 return string; 00068 }
bool PortableServer::operator== | ( | Servant_var< X > const & | x, | |
Servant_var< Y > const & | y | |||
) |
Compare two Servant_vars for equivalence.
bool PortableServer::operator!= | ( | Servant_var< X > const & | x, | |
Servant_var< Y > const & | y | |||
) |
Compare two Servant_vars for non-equivalence.
TAO_PortableServer_Export ::CORBA::TypeCode_ptr const PortableServer::_tc_ObjectId |
Definition at line 51 of file PS_ForwardA.cpp.