18 #ifndef DOIL_CORBA_CORBAMANAGER_H 19 #define DOIL_CORBA_CORBAMANAGER_H 21 #include <coil/Properties.h> 22 #include <coil/Mutex.h> 23 #include <coil/Guard.h> 29 #include <doil/corba/CORBAProxyBase.h> 98 virtual const char*
name()
471 ::PortableServer::POA_ptr
getPOA()
567 ::CORBA::Object_ptr objref)
588 : m_name(entry->
impl_->name())
611 EntryProxy(
ImplBase* impl, CORBAProxyBase* proxy,
612 ::CORBA::Object_ptr objref)
616 virtual ~EntryProxy()
620 CORBAProxyBase* proxy_;
631 EntryPredProxy(
const char* name)
635 EntryPredProxy(
Entry* entry)
639 bool operator()(
Entry* entry)
661 return m_id == factory->
id();
680 return m_id == factory->
id();
698 #endif // RTM_CORBA_CORBAMANAGER_H static CORBAManager * manager
virtual const char * name()
Getting ORB's name.
::PortableServer::POA_ptr getPOA()
Getting default POA pointer.
virtual ServantBase * toServant(doil::ImplBase *lobj)
Getting servant object by impl object.
ServantBase *(* ServantNewFunc)()
doil implementation base class for debag
bool operator()(ServantFactory *factory)
void(* ProxyDeleteFunc)(ProxyBase *)
virtual ReturnCode_t registerFactory(const char *id, doil::ServantNewFunc new_func, doil::ServantDeleteFunc delete_func)
Register servant's factory.
ProxyFactoryPred(const char *id)
coil::Properties m_config
virtual const char * id()
::CORBA::ORB_ptr getORB()
Getting ORB pointer.
ObjectManager< const char *, Entry, EntryPred > m_map
virtual ReturnCode_t registerProxyFactory(const char *id, doil::ProxyNewFunc new_func, doil::ProxyDeleteFunc delete_func)
virtual ImplBase * toImpl(doil::ServantBase *servant)
Getting impl object by servant.
static CORBAManager & instance()
getting instance
EntryPred(const char *name)
virtual ServantBase * getServant(const char *name)
Getting servant object by name.
ObjectManager< const char *, ProxyFactory, ProxyFactoryPred > m_factory_proxy
static CORBAManager * init(coil::Properties prop)
initializer
FactoryPred(ServantFactory *factory)
virtual const char * id()
bool operator()(Entry *entry)
void initOrb(coil::Properties prop)
CORBA ORB initialization.
::CORBA::Object_ptr toReference(doil::ImplBase *impl)
Converting Impl object to object reference.
::CORBA::Object_ptr getReference(const char *name)
Getting object reference from the given name.
virtual ImplBase * getImpl(const char *name)
Getting object by name.
CORBAManager & operator=(const CORBAManager &rhs)
Entry(ImplBase *impl, CORBAServantBase *servant,::CORBA::Object_ptr objref)
CORBAServantBase * servant_
ProxyBase *(* ProxyNewFunc)(::CORBA::Object_ptr obj)
void(* ServantDeleteFunc)(ServantBase *)
::PortableServer::POAManager_ptr getPOAManager()
Getting POAManager pointer.
FactoryPred(const char *id)
void DoilCORBAInit(coil::Properties &prop)
ProxyFactoryPred(ProxyFactory *factory)
prop
Organization::get_organization_property ();.
virtual const char * name()=0
Class represents a set of properties.
::CORBA::Object_ptr objref_
doil::LocalBase * toLocal(::CORBA::Object_ptr &obj)
ObjectManager< const char *, ServantFactory, FactoryPred > m_factory
virtual ReturnCode_t deactivateObject(doil::ImplBase *impl)
Deactivate object.
virtual void shutdown()
Shutdown ORB.
::PortableServer::POAManager_ptr m_poaManager
bool operator()(ProxyFactory *factory)
std::string createORBOptions()
Create ORB command options.
::PortableServer::POA_ptr m_poa
virtual ReturnCode_t activateObject(doil::ImplBase *impl)
Activate object.