CORBA Namespace Reference

FUZZ: disable check_for_include/. More...

Classes

class  Environment
 Environment. More...
class  Exception
 Exception. More...
class  LocalObject
class  Object
 Implementation of a CORBA object reference. More...
class  ORB
 ORB pseudo-object. More...
struct  NamedValue
class  PolicyError
class  InvalidPolicies
class  Policy
class  Principal
 A "Principal" identifies an authenticated entity in the network administration framework. More...
class  SystemException
 SystemException. More...
class  UserException
 Application- or OMG- defined CORBA exception sub-class. More...
class  WrongTransaction

Typedefs

typedef InterfaceDef * InterfaceDef_ptr
typedef ObjectObject_ptr
typedef TAO_Pseudo_Var_T< ObjectObject_var
typedef TAO_Pseudo_Out_T< ObjectObject_out
typedef TypeCode * TypeCode_ptr
typedef PolicyPolicy_ptr
typedef TAO::String_var
< CORBA::Char
String_var
typedef TAO::String_out
< CORBA::Char
String_out
typedef TAO::String_var
< CORBA::WChar
WString_var
typedef TAO::String_out
< CORBA::WChar
WString_out
typedef ORBORB_ptr
typedef EnvironmentEnvironment_ptr
typedef PrincipalPrincipal_ptr
typedef OperationDef * OperationDef_ptr
typedef NVList * NVList_ptr
typedef NamedValueNamedValue_ptr
typedef ExceptionList * ExceptionList_ptr
typedef Request * Request_ptr
typedef Context * Context_ptr
typedef ServerRequest * ServerRequest_ptr
typedef ULong Flags
typedef TAO_Pseudo_Var_T
< Environment
Environment_var
typedef TAO_Pseudo_Out_T
< Environment
Environment_out
typedef Any * Any_ptr
typedef LocalObjectLocalObject_ptr
typedef TAO_Pseudo_Var_T
< LocalObject
LocalObject_var
typedef TAO_Pseudo_Out_T
< LocalObject
LocalObject_out
typedef ContextList * ContextList_ptr
typedef CORBA::ULong PolicyType
typedef TAO_VarSeq_Var_T
< ORB_ObjectIdList > 
ORB_ObjectIdList_var
typedef TAO_Seq_Out_T
< ORB_ObjectIdList > 
ORB_ObjectIdList_out
typedef ValueFactoryBase * ValueFactory
typedef UShort ServiceType
typedef TAO_Pseudo_Var_T< Request > Request_var
typedef TAO_Pseudo_Out_T< Request > Request_out
typedef TAO_Pseudo_Var_T< ORBORB_var
typedef TAO_Pseudo_Out_T< ORBORB_out
typedef CORBA::Short ValueModifier
typedef
TAO::unbounded_object_reference_sequence
< CORBA::Request,
CORBA::Request_var
RequestSeq
typedef TAO_VarSeq_Var_T
< RequestSeq
RequestSeq_var
typedef TAO_Seq_Out_T< RequestSeqRequestSeq_out
typedef TAO_Objref_Var_T< PolicyPolicy_var
typedef TAO_Objref_Out_T< PolicyPolicy_out
typedef CORBA::Short PolicyErrorCode
typedef CORBA::Short_out PolicyErrorCode_out
typedef TAO_Pseudo_Var_T
< Principal
Principal_var
typedef TAO_Pseudo_Out_T
< Principal
Principal_out
typedef TCKindTCKind_out
typedef TAO_Pseudo_Var_T
< TypeCode > 
TypeCode_var
typedef TAO_Pseudo_Out_T
< TypeCode > 
TypeCode_out
typedef AbstractBase * AbstractBase_ptr
CORBA Primitive Types

Declarations of all CORBA primitive types.



typedef ACE_CDR::Boolean Boolean
typedef BooleanBoolean_out
typedef ACE_CDR::Octet Octet
typedef OctetOctet_out
typedef ACE_CDR::Short Short
typedef ShortShort_out
typedef ACE_CDR::UShort UShort
typedef UShortUShort_out
typedef ACE_CDR::Long Long
typedef LongLong_out
typedef ACE_CDR::ULong ULong
typedef ULongULong_out
typedef ACE_CDR::LongLong LongLong
typedef LongLongLongLong_out
typedef ACE_CDR::ULongLong ULongLong
typedef ULongLongULongLong_out
typedef ACE_CDR::Float Float
typedef FloatFloat_out
typedef ACE_CDR::Double Double
typedef DoubleDouble_out
typedef ACE_CDR::LongDouble LongDouble
typedef LongDoubleLongDouble_out
typedef ACE_CDR::Char Char
typedef CharChar_out
typedef ACE_CDR::WChar WChar
typedef WCharWChar_out

Enumerations

enum  exception_type {
  NO_EXCEPTION, USER_EXCEPTION, SYSTEM_EXCEPTION, NO_EXCEPTION,
  USER_EXCEPTION, SYSTEM_EXCEPTION
}
 

Enumeration used to identify the type of CORBA exception.

More...
enum  exception_type {
  NO_EXCEPTION, USER_EXCEPTION, SYSTEM_EXCEPTION, NO_EXCEPTION,
  USER_EXCEPTION, SYSTEM_EXCEPTION
}
enum  CompletionStatus { COMPLETED_YES, COMPLETED_NO, COMPLETED_MAYBE }
 

Completion status for CORBA system exceptions.

More...
enum  TCKind {
  tk_null, tk_void, tk_short, tk_long,
  tk_ushort, tk_ulong, tk_float, tk_double,
  tk_boolean, tk_char, tk_octet, tk_any,
  tk_TypeCode, tk_Principal, tk_objref, tk_struct,
  tk_union, tk_enum, tk_string, tk_sequence,
  tk_array, tk_alias, tk_except, tk_longlong,
  tk_ulonglong, tk_longdouble, tk_wchar, tk_wstring,
  tk_fixed, tk_value, tk_value_box, tk_native,
  tk_abstract_interface, tk_local_interface, tk_component, tk_home,
  tk_event, TAO_TC_KIND_COUNT
}

Functions

TAO_Export ORB_ptr ORB_init (int &argc, char *argv[], const char *orb_name=0)
TAO_Export ORB_ptr ORB_init (int &argc, wchar_t *argv[], const char *orb_name=0)
TAO_Export ORB_ptr ORB_init (int &argc, wchar_t *argv[], const wchar_t *orb_name)
TAO_NAMESPACE_INLINE_FUNCTION
Boolean 
is_nil (Environment_ptr)
TAO_NAMESPACE_INLINE_FUNCTION void release (Environment_ptr)
TAO_NAMESPACE_INLINE_FUNCTION
Boolean 
is_nil (ORB_ptr)
TAO_NAMESPACE_INLINE_FUNCTION void release (ORB_ptr)
TAO_NAMESPACE_INLINE_FUNCTION
Boolean 
is_nil (Object_ptr)
TAO_NAMESPACE_INLINE_FUNCTION void release (Object_ptr)
TAO_NAMESPACE_INLINE_FUNCTION
Boolean 
is_nil (Principal_ptr)
TAO_NAMESPACE_INLINE_FUNCTION void release (Principal_ptr)
ACE_OSTREAM_TYPE & operator<< (ACE_OSTREAM_TYPE &os, const CORBA::Exception &e)
ACE_OSTREAM_TYPE & operator<< (ACE_OSTREAM_TYPE &os, const CORBA::Exception *e)
CORBA String Memory Management

CORBA string memory management functions.



TAO_Export char * string_alloc (ULong len)
TAO_Export char * string_dup (const char *)
TAO_Export void string_free (char *)
CORBA Wide String Memory Management

CORBA wide string memory management functions.



TAO_Export WCharwstring_alloc (ULong len)
TAO_Export WCharwstring_dup (const WChar *const)
TAO_Export void wstring_free (WChar *const)

Variables

const ULong OMGVMCID = 0x4f4d0000U
 The OMG Vendor Minor Codeset ID (VMCID).
const CORBA::PolicyErrorCode BAD_POLICY = 0
const CORBA::PolicyErrorCode UNSUPPORTED_POLICY = 1
const CORBA::PolicyErrorCode BAD_POLICY_TYPE = 2
const CORBA::PolicyErrorCode BAD_POLICY_VALUE = 3
const CORBA::PolicyErrorCode UNSUPPORTED_POLICY_VALUE = 4

Detailed Description

FUZZ: disable check_for_include/.


Typedef Documentation

typedef AbstractBase* CORBA::AbstractBase_ptr

Definition at line 33 of file Valuetype_Adapter.h.

typedef Any* CORBA::Any_ptr

Definition at line 59 of file Exception.h.

Definition at line 42 of file Basic_Types.h.

Definition at line 43 of file Basic_Types.h.

Definition at line 75 of file Basic_Types.h.

Definition at line 76 of file Basic_Types.h.

typedef Context * CORBA::Context_ptr

Definition at line 48 of file Dynamic_Adapter.h.

typedef ContextList * CORBA::ContextList_ptr

Definition at line 81 of file Object.h.

Definition at line 69 of file Basic_Types.h.

Definition at line 70 of file Basic_Types.h.

Definition at line 46 of file Environment.h.

Definition at line 40 of file CORBA_methods.h.

Definition at line 45 of file Environment.h.

typedef ExceptionList * CORBA::ExceptionList_ptr

Definition at line 42 of file Dynamic_Adapter.h.

Definition at line 54 of file Dynamic_Adapter.h.

Definition at line 66 of file Basic_Types.h.

Definition at line 67 of file Basic_Types.h.

typedef InterfaceDef * CORBA::InterfaceDef_ptr

Definition at line 42 of file Abstract_Servant_Base.h.

Definition at line 41 of file LocalObject.h.

Definition at line 38 of file LocalObject.h.

Definition at line 40 of file LocalObject.h.

Definition at line 54 of file Basic_Types.h.

Definition at line 55 of file Basic_Types.h.

Definition at line 72 of file Basic_Types.h.

Definition at line 73 of file Basic_Types.h.

Definition at line 60 of file Basic_Types.h.

Definition at line 61 of file Basic_Types.h.

Definition at line 39 of file Dynamic_Adapter.h.

typedef NVList * CORBA::NVList_ptr

Definition at line 36 of file Dynamic_Adapter.h.

Definition at line 48 of file Abstract_Servant_Base.h.

Definition at line 45 of file Abstract_Servant_Base.h.

Definition at line 47 of file Abstract_Servant_Base.h.

Definition at line 45 of file Basic_Types.h.

Definition at line 46 of file Basic_Types.h.

typedef OperationDef * CORBA::OperationDef_ptr

Definition at line 49 of file CORBA_methods.h.

typedef TAO_Seq_Out_T< ORB_ObjectIdList > CORBA::ORB_ObjectIdList_out

Definition at line 107 of file ORB.h.

typedef TAO_VarSeq_Var_T< ORB_ObjectIdList > CORBA::ORB_ObjectIdList_var

Definition at line 101 of file ORB.h.

Definition at line 122 of file ORB.h.

typedef ORB * CORBA::ORB_ptr

Definition at line 37 of file CORBA_methods.h.

Definition at line 121 of file ORB.h.

Definition at line 58 of file PolicyC.cpp.

Definition at line 39 of file AnyTypeCode_Adapter.h.

Definition at line 57 of file PolicyC.cpp.

Definition at line 83 of file PolicyC.h.

Definition at line 84 of file PolicyC.h.

Definition at line 93 of file ORB.h.

Definition at line 42 of file Principal.h.

Definition at line 46 of file CORBA_methods.h.

Definition at line 41 of file Principal.h.

Definition at line 117 of file ORB.h.

typedef Request * CORBA::Request_ptr

Definition at line 45 of file Dynamic_Adapter.h.

Definition at line 116 of file ORB.h.

typedef TAO::unbounded_object_reference_sequence< CORBA::Request, CORBA::Request_var > CORBA::RequestSeq

Definition at line 135 of file ORB.h.

Definition at line 147 of file ORB.h.

Definition at line 141 of file ORB.h.

typedef ServerRequest* CORBA::ServerRequest_ptr

Definition at line 51 of file Dynamic_Adapter.h.

Definition at line 112 of file ORB.h.

Definition at line 48 of file Basic_Types.h.

Definition at line 49 of file Basic_Types.h.

typedef TAO::String_out< char > CORBA::String_out

Definition at line 83 of file Basic_Types.h.

typedef TAO::String_var< char > CORBA::String_var

Definition at line 82 of file Basic_Types.h.

Definition at line 115 of file Typecode_typesC.h.

Definition at line 41 of file TypeCodeFactory_Adapter.h.

typedef TypeCode * CORBA::TypeCode_ptr

Definition at line 34 of file AnyTypeCode_Adapter.h.

Definition at line 38 of file TypeCodeFactory_Adapter.h.

Definition at line 57 of file Basic_Types.h.

Definition at line 58 of file Basic_Types.h.

Definition at line 63 of file Basic_Types.h.

Definition at line 64 of file Basic_Types.h.

Definition at line 51 of file Basic_Types.h.

Definition at line 52 of file Basic_Types.h.

typedef ValueFactoryBase * CORBA::ValueFactory

Definition at line 109 of file ORB.h.

Definition at line 124 of file ORB.h.

Definition at line 78 of file Basic_Types.h.

Definition at line 79 of file Basic_Types.h.

typedef TAO::String_out< CORBA::WChar > CORBA::WString_out

Definition at line 85 of file Basic_Types.h.

typedef TAO::String_var< CORBA::WChar > CORBA::WString_var

Definition at line 84 of file Basic_Types.h.


Enumeration Type Documentation

Completion status for CORBA system exceptions.

Enumerations that denote how an operation was (not) completed when a CORBA::SystemException is thrown.

Enumerator:
COMPLETED_YES 

Successful or exceptional completion.

COMPLETED_NO 

Didn't change any state; retry is OK.

COMPLETED_MAYBE 

Can't say what happened; retry unsafe.

Definition at line 77 of file SystemException.h.

00078   {
00079     COMPLETED_YES,     ///< Successful or exceptional completion.
00080     COMPLETED_NO,      ///< Didn't change any state; retry is OK.
00081     COMPLETED_MAYBE    ///< Can't say what happened; retry unsafe.
00082   };

Enumerator:
NO_EXCEPTION 
USER_EXCEPTION 
SYSTEM_EXCEPTION 
NO_EXCEPTION 
USER_EXCEPTION 
SYSTEM_EXCEPTION 

Definition at line 54 of file orb.idl.

00055   {
00056     NO_EXCEPTION,
00057     USER_EXCEPTION,
00058     SYSTEM_EXCEPTION
00059   };

Enumeration used to identify the type of CORBA exception.

CORBA exceptions generally fall into two categories, user exceptions and system exceptions. This enumeration is used when identifying the type of CORBA exception.

Enumerator:
NO_EXCEPTION 
USER_EXCEPTION 
SYSTEM_EXCEPTION 
NO_EXCEPTION 
USER_EXCEPTION 
SYSTEM_EXCEPTION 

Definition at line 73 of file Exception.h.

00074   {
00075     NO_EXCEPTION,
00076     USER_EXCEPTION,
00077     SYSTEM_EXCEPTION
00078   };

Enumerator:
tk_null 
tk_void 
tk_short 
tk_long 
tk_ushort 
tk_ulong 
tk_float 
tk_double 
tk_boolean 
tk_char 
tk_octet 
tk_any 
tk_TypeCode 
tk_Principal 
tk_objref 
tk_struct 
tk_union 
tk_enum 
tk_string 
tk_sequence 
tk_array 
tk_alias 
tk_except 
tk_longlong 
tk_ulonglong 
tk_longdouble 
tk_wchar 
tk_wstring 
tk_fixed 
tk_value 
tk_value_box 
tk_native 
tk_abstract_interface 
tk_local_interface 
tk_component 
tk_home 
tk_event 
TAO_TC_KIND_COUNT 

Definition at line 69 of file Typecode_typesC.h.

00070   {
00071     tk_null,
00072     tk_void,
00073     tk_short,
00074     tk_long,
00075     tk_ushort,
00076     tk_ulong,
00077     tk_float,
00078     tk_double,
00079     tk_boolean,
00080     tk_char,
00081     tk_octet,
00082     tk_any,
00083     tk_TypeCode,
00084     tk_Principal,
00085     tk_objref,
00086     tk_struct,
00087     tk_union,
00088     tk_enum,
00089     tk_string,
00090     tk_sequence,
00091     tk_array,
00092     tk_alias,
00093     tk_except,
00094     tk_longlong,
00095     tk_ulonglong,
00096     tk_longdouble,
00097     tk_wchar,
00098     tk_wstring,
00099     tk_fixed,
00100     tk_value,
00101     tk_value_box,
00102     tk_native,
00103     tk_abstract_interface,
00104     tk_local_interface,
00105     tk_component,
00106     tk_home,
00107     tk_event
00108 
00109     // This symbol is not defined by CORBA 3.0.  It's used to speed up
00110     // dispatch based on TCKind values, and lets many important ones
00111     // just be table lookups.  It must always be the last enum value!!
00112     , TAO_TC_KIND_COUNT
00113   };


Function Documentation

CORBA::Boolean CORBA::is_nil ( CORBA::Principal_ptr  principal  ) 

Definition at line 9 of file Principal.inl.

00010 {
00011   return principal == 0;
00012 }

CORBA::Boolean CORBA::is_nil ( CORBA::Object_ptr  obj  ) 

Definition at line 46 of file Object.inl.

00047 {
00048   if (obj == 0)
00049     {
00050       return true;
00051     }
00052 
00053   return CORBA::Object::is_nil_i (obj);
00054 }

CORBA::Boolean CORBA::is_nil ( CORBA::ORB_ptr  obj  ) 

Definition at line 91 of file ORB.inl.

00092 {
00093   return obj == CORBA::ORB::_nil ();
00094 }

CORBA::Boolean CORBA::is_nil ( CORBA::Environment_ptr  env  ) 

Definition at line 12 of file Environment.inl.

00013 {
00014   return env == 0;
00015 }

TAO_Export ACE_OSTREAM_TYPE & CORBA::operator<< ( ACE_OSTREAM_TYPE &  os,
const CORBA::Exception e 
)
TAO_Export ACE_OSTREAM_TYPE & CORBA::operator<< ( ACE_OSTREAM_TYPE &  os,
const CORBA::Exception e 
)
TAO_Export ORB_ptr CORBA::ORB_init ( int &  argc,
wchar_t *  argv[],
const wchar_t *  orb_name 
)
TAO_Export ORB_ptr CORBA::ORB_init ( int &  argc,
wchar_t *  argv[],
const char *  orb_name = 0 
)
CORBA::ORB_ptr CORBA::ORB_init ( int &  argc,
char *  argv[],
const char *  orb_name = 0 
)

ORB Initialization

Definition at line 1232 of file ORB.cpp.

01233 {
01234   // It doesn't make sense for argc to be zero and argv to be
01235   // non-empty/zero, or for argc to be greater than zero and argv be
01236   // zero.
01237   size_t const argv0_len = (argv ? (*argv
01238                                         ? ACE_OS::strlen (*argv)
01239                                         : 0)
01240                                      : 0);
01241 
01242   if ((argc == 0 && argv0_len != 0)
01243       || (argc != 0  && (argv == 0 || argv[0] == 0)))
01244     {
01245       throw ::CORBA::BAD_PARAM (
01246         CORBA::SystemException::_tao_minor_code (
01247           0,
01248           EINVAL),
01249         CORBA::COMPLETED_NO);
01250     }
01251 
01252   // Scan the parameters to find any we could interpret to
01253   // use for initializing the global context. Note that if
01254   // the global context has been initialized already, the
01255   // parameters may either be ignored, or later used to initialize
01256   // a local configuration context. The chosen action depends on
01257   // weather we want the ORB to share the global context or
01258   // have its own, private (or local) context.
01259   if (TAO::ORB::open_global_services (argc, argv) == -1)
01260     {
01261         return CORBA::ORB::_nil ();
01262     }
01263 
01264   // Copy command line parameter not to corrupt the original.
01265   ACE_Argv_Type_Converter command_line (argc, argv);
01266 
01267   // Make sure the following is done after the global ORB
01268   // initialization since we need to have exceptions initialized.
01269 
01270   // Use this string variable to hold the orbid
01271   ACE_TString orbid_string (ACE_TEXT_CHAR_TO_TCHAR(orbid));
01272   TAO::parse_orb_opt (command_line, ACE_TEXT("-ORBid"), orbid_string);
01273 
01274   // Get ORB Core
01275   TAO_ORB_Core_Auto_Ptr oc (TAO::ORB_Table::instance ()->find (
01276     ACE_TEXT_ALWAYS_CHAR(orbid_string.c_str ())));
01277 
01278     // The ORB was already initialized.  Just return that one.
01279   if (oc.get () != 0)
01280     {
01281       return CORBA::ORB::_duplicate (oc->orb ());
01282     }
01283 
01284   // Determine the service object registry this ORB will use. The choises
01285   // are: (a) the legacy (global); (b) its own, local, or (c) share somebody
01286   // else's configuration. By default use the process-wide (global) context
01287     // Use this string variable to hold the configuration identity key
01288   ACE_TString orbconfig_string;
01289   TAO::parse_orb_opt (command_line, ACE_TEXT("-ORBGestalt"), orbconfig_string);
01290   ACE_Intrusive_Auto_Ptr<ACE_Service_Gestalt> gestalt = TAO::find_orb_context (orbconfig_string);
01291 
01292   // An ORB corresponding to the desired ORBid doesn't exist so create
01293   // a new one.
01294   TAO_ORB_Core * tmp = 0;
01295   ACE_NEW_THROW_EX (tmp,
01296                     TAO_ORB_Core (ACE_TEXT_ALWAYS_CHAR(orbid_string.c_str ()),
01297                       gestalt),
01298                     CORBA::NO_MEMORY (
01299                       CORBA::SystemException::_tao_minor_code (0,
01300                                                                ENOMEM),
01301                       CORBA::COMPLETED_NO));
01302 
01303   // The ORB table increases the reference count on the ORB Core
01304   // so do not release it here.  Allow the TAO_ORB_Core_Auto_Ptr
01305   // to decrease the reference count on the ORB Core when it goes
01306   // out of scope.
01307   oc.reset (tmp);
01308 
01309   // Having the ORB's default static services be shared among all ORBs
01310   // is tempting from the point of view of reducing the dynamic
01311   // footprint. However, if the ORB in a DLL and the rest of that
01312   // application most likely neither cares, nor wishes to know about
01313   // them. Furthermore, if the ORB DLL gets unloaded, the static
01314   // services it had registered globaly will no longer be accesible,
01315   // which will have disastrous consequences at the process
01316   // shutdown. Hence, the ACE_Service_Config_Guard ensures that for
01317   // the current thread, any references to the global
01318   // ACE_Service_Config will be re-routed to this ORB's service gestalt.
01319 
01320   ACE_Service_Config_Guard scg (oc->configuration ());
01321 
01322   // Initialize the Service Configurator.  This must occur before the
01323   // ORBInitializer::pre_init() method is invoked on each registered
01324   // ORB initializer.
01325   int result = TAO::ORB::open_services (oc->configuration (),
01326                                         command_line.get_argc (),
01327                                         command_line.get_TCHAR_argv ());
01328 
01329   // Check for errors returned from <TAO_Internal::open_services>.
01330   if (result != 0 && errno != ENOENT)
01331     {
01332       ACE_ERROR ((LM_ERROR,
01333                   ACE_TEXT ("TAO (%P|%t) %p\n"),
01334                   ACE_TEXT ("Unable to initialize the ")
01335                   ACE_TEXT ("Service Configurator")));
01336       throw ::CORBA::INITIALIZE (
01337         CORBA::SystemException::_tao_minor_code (
01338           TAO_ORB_CORE_INIT_LOCATION_CODE,
01339           0),
01340         CORBA::COMPLETED_NO);
01341     }
01342 
01343   TAO::ORBInitializer_Registry_Adapter * orbinitializer_registry =
01344     oc.get ()->orbinitializer_registry ();
01345 
01346   PortableInterceptor::SlotId slotid = 0;
01347   size_t pre_init_count = 0;
01348 
01349   if (orbinitializer_registry != 0)
01350     {
01351       pre_init_count =
01352         orbinitializer_registry->pre_init (oc.get (),
01353                                            command_line.get_argc(),
01354                                            command_line.get_ASCII_argv(),
01355                                            slotid);
01356     }
01357 
01358   // Initialize the ORB Core instance.
01359   result = oc->init (command_line.get_argc(),
01360                      command_line.get_ASCII_argv());
01361 
01362   if (orbinitializer_registry != 0)
01363     {
01364       orbinitializer_registry->post_init (pre_init_count,
01365                                           oc.get (),
01366                                           command_line.get_argc(),
01367                                           command_line.get_ASCII_argv(),
01368                                           slotid);
01369     }
01370 
01371   if (TAO_debug_level > 2)
01372     {
01373       ACE_DEBUG ((LM_DEBUG,
01374                   ACE_TEXT("TAO (%P|%t) - Created new ORB <%s>\n"),
01375                   orbid_string.c_str ()));
01376     }
01377 
01378   // Before returning remember to store the ORB into the table...
01379   if (TAO::ORB_Table::instance ()->bind (ACE_TEXT_ALWAYS_CHAR(orbid_string.c_str ()),
01380                                          oc.get ()) != 0)
01381     throw ::CORBA::INTERNAL (0, CORBA::COMPLETED_NO);
01382 
01383   // Return a duplicate since the ORB_Core should release the last
01384   // reference to the ORB.
01385   return CORBA::ORB::_duplicate (oc->orb ());
01386 }

void CORBA::release ( CORBA::Principal_ptr  principal  ) 

Definition at line 28 of file Principal.inl.

00029 {
00030   if (principal)
00031     {
00032       principal->_decr_refcnt ();
00033     }
00034 }

void CORBA::release ( CORBA::Object_ptr  obj  ) 

Definition at line 36 of file Object.inl.

00037 {
00038   if (obj)
00039     {
00040       obj->_remove_ref ();
00041     }
00042 }

void CORBA::release ( CORBA::ORB_ptr  obj  ) 

Definition at line 97 of file ORB.inl.

00098 {
00099   if (!CORBA::is_nil (obj))
00100     obj->_decr_refcnt ();
00101 }

void CORBA::release ( CORBA::Environment_ptr  env  ) 

Definition at line 19 of file Environment.inl.

00020 {
00021   delete env;
00022 }

char * CORBA::string_alloc ( CORBA::ULong  len  ) 

Definition at line 40 of file String_Alloc.cpp.

00041 {
00042   // Allocate 1 + strlen to accomodate the null terminating character.
00043   char *s = 0;
00044   ACE_NEW_RETURN (s,
00045                   char[size_t (len + 1)],
00046                   0);
00047 
00048   s[0]= '\0';
00049 
00050   return s;
00051 }

TAO_Export char* CORBA::string_dup ( const char *   ) 
void CORBA::string_free ( char *  str  ) 

Definition at line 54 of file String_Alloc.cpp.

00055 {
00056   delete [] str;
00057 }

CORBA::WChar * CORBA::wstring_alloc ( CORBA::ULong  len  ) 

Definition at line 83 of file String_Alloc.cpp.

00084 {
00085   CORBA::WChar *s = 0;
00086   ACE_NEW_RETURN (s,
00087                   CORBA::WChar [(size_t) (len + 1)],
00088                   0);
00089 
00090   return s;
00091 }

CORBA::WChar * CORBA::wstring_dup ( const WChar * const  str  ) 

Definition at line 62 of file String_Alloc.cpp.

00063 {
00064   if (!str)
00065     {
00066       errno = EINVAL;
00067       return 0;
00068     }
00069 
00070   CORBA::WChar* retval =
00071     CORBA::wstring_alloc (static_cast <CORBA::ULong> (ACE_OS::strlen (str)));
00072 
00073   // The wscpy() below assumes that the destination is a valid buffer.
00074   if (retval == 0)
00075     {
00076       return 0;
00077     }
00078 
00079   return ACE_OS::wscpy (retval, str);
00080 }

void CORBA::wstring_free ( WChar * const  str  ) 

Definition at line 94 of file String_Alloc.cpp.

00095 {
00096   delete [] str;
00097 }


Variable Documentation

Definition at line 89 of file PolicyC.h.

Definition at line 99 of file PolicyC.h.

Definition at line 104 of file PolicyC.h.

const ULong CORBA::OMGVMCID = 0x4f4d0000U

The OMG Vendor Minor Codeset ID (VMCID).

This number is reserved by the OMG as a prefix to all the standard system exception minor codes. Check the CORBA/IIOP specification for details.

OMG defined system exception minor codes should be logically OR-ed with this constant when passing such minor codes to a CORBA::SystemException constructor. For example, throwing a CORBA::BAD_PARAM exception with an OMG defined minor code of 2 is done as follows:

   *   throw ::CORBA::BAD_PARAM (CORBA::OMGVMCID | 2, CORBA::COMPLETED_NO);
   * 

*NOT* as:

   *   throw ::CORBA::BAD_PARAM (2, CORBA::COMPLETED_NO);
   * 

Definition at line 56 of file ORB_Constants.h.

Definition at line 94 of file PolicyC.h.

Definition at line 109 of file PolicyC.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Sat Nov 21 23:30:38 2009 for TAO by  doxygen 1.6.1