00001 // -*- C++ -*- 00002 //============================================================================= 00003 /** 00004 * @file CORBA_methods.h 00005 * 00006 * $Id: CORBA_methods.h 81865 2008-06-09 11:50:30Z sma $ 00007 * 00008 * Declarations of common methods in the CORBA namespace. 00009 * 00010 * @author Jeff Parsons 00011 */ 00012 //============================================================================= 00013 00014 #ifndef TAO_CORBA_METHODS_H 00015 #define TAO_CORBA_METHODS_H 00016 00017 #include /**/ "ace/pre.h" 00018 00019 #include /**/ "tao/TAO_Export.h" 00020 00021 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00022 # pragma once 00023 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00024 00025 #include "tao/Basic_Types.h" 00026 #include "tao/orbconf.h" 00027 00028 #if defined (TAO_EXPORT_MACRO) 00029 #undef TAO_EXPORT_MACRO 00030 #endif 00031 #define TAO_EXPORT_MACRO TAO_Export 00032 00033 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00034 00035 namespace CORBA 00036 { 00037 class ORB; 00038 typedef ORB *ORB_ptr; 00039 00040 class Environment; 00041 typedef Environment *Environment_ptr; 00042 00043 class Object; 00044 typedef Object *Object_ptr; 00045 00046 class Principal; 00047 typedef Principal *Principal_ptr; 00048 00049 class OperationDef; 00050 typedef OperationDef *OperationDef_ptr; 00051 00052 /** 00053 * ORB Initialization 00054 */ 00055 extern TAO_Export ORB_ptr ORB_init (int & argc, 00056 char * argv[], 00057 const char * orb_name = 0); 00058 #if defined (ACE_USES_WCHAR) 00059 extern TAO_Export ORB_ptr ORB_init (int & argc, 00060 wchar_t * argv[], 00061 const char * orb_name = 0); 00062 00063 extern TAO_Export ORB_ptr ORB_init (int & argc, 00064 wchar_t * argv[], 00065 const wchar_t * orb_name); 00066 #endif 00067 00068 TAO_NAMESPACE_INLINE_FUNCTION Boolean is_nil (Environment_ptr); 00069 TAO_NAMESPACE_INLINE_FUNCTION void release (Environment_ptr); 00070 00071 TAO_NAMESPACE_INLINE_FUNCTION Boolean is_nil (ORB_ptr); 00072 TAO_NAMESPACE_INLINE_FUNCTION void release (ORB_ptr); 00073 00074 TAO_NAMESPACE_INLINE_FUNCTION Boolean is_nil (Object_ptr); 00075 TAO_NAMESPACE_INLINE_FUNCTION void release (Object_ptr); 00076 00077 TAO_NAMESPACE_INLINE_FUNCTION Boolean is_nil (Principal_ptr); 00078 TAO_NAMESPACE_INLINE_FUNCTION void release (Principal_ptr); 00079 } 00080 00081 TAO_END_VERSIONED_NAMESPACE_DECL 00082 00083 #include /**/ "ace/post.h" 00084 00085 #endif /* TAO_CORBA_METHODS_H */