#ifndef POAUTIL_H__ #define POAUTIL_H__ #include #if defined(HAVE_OMNIORB4) && HAVE_OMNIORB4 # include "omniORB4/CORBA.h" #else # error "only omniORB is supported" #endif class POAUtil { public: static PortableServer::POA_ptr create_basic_POA( PortableServer::POA_ptr parentPOA, PortableServer::POAManager_ptr POAManager, const char * POAName, CORBA::Boolean isMultiThread, CORBA::Boolean isPersistent); static CORBA::Object_ptr activate_servant( CORBA::ORB_ptr orb, PortableServer::POA_ptr poa, # if defined(CIPRES_USING_IORTABLE) && CIPRES_USING_IORTABLE IORTable::Table_ptr iortable, # endif PortableServer::ServantBase *servant, const char *objectName, const char *objectAlias); }; #endif