Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
doil::CORBA::CORBAManager Class Reference

#include <CORBAManager.h>

Inheritance diagram for doil::CORBA::CORBAManager:
Inheritance graph
[legend]

Classes

class  Entry
 
class  EntryPred
 
class  FactoryPred
 
class  ProxyFactoryPred
 

Public Member Functions

virtual ReturnCode_t activateObject (doil::ImplBase *impl) throw ()
 Activate object. More...
 
virtual ReturnCode_t activateObject (doil::ImplBase *impl, doil::ServantBase *servant) throw ()
 Activate object. More...
 
virtual ReturnCode_t deactivateObject (doil::ImplBase *impl) throw ()
 Deactivate object. More...
 
virtual ReturnCode_t deactivateObject (const char *name) throw ()
 Deactivate object. More...
 
virtual ImplBasegetImpl (const char *name) throw ()
 Getting object by name. More...
 
::CORBA::ORB_ptr getORB () throw ()
 Getting ORB pointer. More...
 
::PortableServer::POA_ptr getPOA () throw ()
 Getting default POA pointer. More...
 
::PortableServer::POAManager_ptr getPOAManager () throw ()
 Getting POAManager pointer. More...
 
::CORBA::Object_ptr getReference (const char *name) throw ()
 Getting object reference from the given name. More...
 
virtual ServantBasegetServant (const char *name) throw ()
 Getting servant object by name. More...
 
virtual const char * name () throw ()
 Getting ORB's name. More...
 
virtual ReturnCode_t registerFactory (const char *id, doil::ServantNewFunc new_func, doil::ServantDeleteFunc delete_func) throw ()
 Register servant's factory. More...
 
virtual ReturnCode_t registerProxyFactory (const char *id, doil::ProxyNewFunc new_func, doil::ProxyDeleteFunc delete_func) throw ()
 
virtual void run () throw ()
 
virtual void shutdown () throw ()
 Shutdown ORB. More...
 
virtual ImplBasetoImpl (doil::ServantBase *servant) throw ()
 Getting impl object by servant. More...
 
doil::ImplBasetoImpl (::CORBA::Object_ptr obj) throw ()
 Convert CORBA Object_ptr to Impl related to it. More...
 
doil::LocalBasetoLocal (::CORBA::Object_ptr &obj)
 
::CORBA::Object_ptr toReference (doil::ImplBase *impl) throw ()
 Converting Impl object to object reference. More...
 
::CORBA::Object_ptr toReference (doil::ServantBase *servant) throw ()
 Converting Servant object to object reference. More...
 
virtual ServantBasetoServant (doil::ImplBase *lobj) throw ()
 Getting servant object by impl object. More...
 
doil::ServantBasetoServant (::CORBA::Object_ptr obj) throw ()
 Getting ORB pointer. More...
 
- Public Member Functions inherited from doil::IORB
virtual ~IORB () throw ()
 Register an ORB to the ORBManager. More...
 

Static Public Member Functions

static CORBAManagerinit (coil::Properties prop) throw ()
 initializer More...
 
static CORBAManagerinstance () throw ()
 getting instance More...
 

Protected Member Functions

std::string createORBOptions ()
 Create ORB command options. More...
 
void initOrb (coil::Properties prop)
 CORBA ORB initialization. More...
 

Private Member Functions

 CORBAManager ()
 
 CORBAManager (const CORBAManager &cmgr)
 
CORBAManageroperator= (const CORBAManager &rhs)
 
 ~CORBAManager () throw ()
 

Private Attributes

coil::Properties m_config
 
ObjectManager< const char *, ServantFactory, FactoryPredm_factory
 
ObjectManager< const char *, ProxyFactory, ProxyFactoryPredm_factory_proxy
 
ObjectManager< const char *, Entry, EntryPredm_map
 
::CORBA::ORB_ptr m_orb
 
::PortableServer::POA_ptr m_poa
 
::PortableServer::POAManager_ptr m_poaManager
 

Static Private Attributes

static CORBAManagermanager = NULL
 
static coil::Mutex mutex
 

Detailed Description

This class is a singleton class that interfaces IORB.

Definition at line 49 of file CORBAManager.h.

Constructor & Destructor Documentation

◆ CORBAManager() [1/2]

doil::CORBA::CORBAManager::CORBAManager ( )
inlineprivate

Definition at line 535 of file CORBAManager.h.

◆ CORBAManager() [2/2]

doil::CORBA::CORBAManager::CORBAManager ( const CORBAManager cmgr)
private

◆ ~CORBAManager()

doil::CORBA::CORBAManager::~CORBAManager ( )
throw (
)
inlineprivate

Definition at line 539 of file CORBAManager.h.

Member Function Documentation

◆ activateObject() [1/2]

ReturnCode_t doil::CORBA::CORBAManager::activateObject ( doil::ImplBase impl)
throw (
)
virtual

Activate object.

This operation will activate given object The servant that has same ID with the given object's ID should exist in this ORB servant's map. INVALID_ARGS error code will return if the factory does not exist.

Returns
OK: Normal return ALREADY_EXISTS: Given object already exists. INVALID_ARGS: The given arguments is invalid. UNKNOWN: Unknown error

Implements doil::IORB.

Definition at line 188 of file CORBAManager.cpp.

◆ activateObject() [2/2]

ReturnCode_t doil::CORBA::CORBAManager::activateObject ( doil::ImplBase impl,
doil::ServantBase servant 
)
throw (
)
virtual

Activate object.

This operation will activate given object The servant's factory that activate the given object does not need to exists in this ORB manager. However, the given servant's ID and the given object's ID have to be same. INVALID_ARGS error will be returned if these IDs are not same.

Returns
OK: Normal return ALREADY_EXISTS: Given object already exists. INVALID_ARGS: The given arguments is invalid. UNKNOWN: Unknown error

Implements doil::IORB.

Definition at line 252 of file CORBAManager.cpp.

◆ createORBOptions()

std::string doil::CORBA::CORBAManager::createORBOptions ( )
protected

Create ORB command options.

Create ORB launch options from configuration information that has been set.

Returns
ORB launch options

Definition at line 539 of file CORBAManager.cpp.

◆ deactivateObject() [1/2]

ReturnCode_t doil::CORBA::CORBAManager::deactivateObject ( doil::ImplBase impl)
throw (
)
virtual

Deactivate object.

This operation will deactivate the given object. NOT_FOUND error will be returned if the given object does not exist in the ative object map.

Returns
OK: Normal return NOT_FOUND: Given object does not exist in the map. INVALID_ARGS: The given arguments is invalid. UNKNOWN: Unknown error

Implements doil::IORB.

Definition at line 284 of file CORBAManager.cpp.

◆ deactivateObject() [2/2]

ReturnCode_t doil::CORBA::CORBAManager::deactivateObject ( const char *  name)
throw (
)
virtual

Deactivate object.

This operation will deactivate the given name's object. NOT_FOUND error will be returned if the given object does not exist in the ative object map.

Returns
OK: Normal return NOT_FOUND: Given object does not exist in the map. INVALID_ARGS: The given arguments is invalid. UNKNOWN: Unknown error

Implements doil::IORB.

Definition at line 298 of file CORBAManager.cpp.

◆ getImpl()

doil::ImplBase * doil::CORBA::CORBAManager::getImpl ( const char *  name)
throw (
)
virtual

Getting object by name.

This operation will return a object by given name. NOT_FOUND error will be returned if the given name's object does not exist in the ative object map.

Returns
OK: Normal return NOT_FOUND: The object does not exist in the map. INVALID_ARGS: The given arguments is invalid. UNKNOWN: Unknown error

Implements doil::IORB.

Definition at line 325 of file CORBAManager.cpp.

◆ getORB()

CORBA::ORB_ptr doil::CORBA::CORBAManager::getORB ( )
throw (
)

Getting ORB pointer.

Definition at line 475 of file CORBAManager.cpp.

◆ getPOA()

PortableServer::POA_ptr doil::CORBA::CORBAManager::getPOA ( )
throw (
)

Getting default POA pointer.

Definition at line 488 of file CORBAManager.cpp.

◆ getPOAManager()

PortableServer::POAManager_ptr doil::CORBA::CORBAManager::getPOAManager ( )
throw (
)

Getting POAManager pointer.

Definition at line 501 of file CORBAManager.cpp.

◆ getReference()

CORBA::Object_ptr doil::CORBA::CORBAManager::getReference ( const char *  name)
throw (
)

Getting object reference from the given name.

Definition at line 412 of file CORBAManager.cpp.

◆ getServant()

doil::ServantBase * doil::CORBA::CORBAManager::getServant ( const char *  name)
throw (
)
virtual

Getting servant object by name.

This operation will return an servant object by given name. NOT_FOUND error will be returned if the given name's servant object does not exist in the ative object map.

Returns
OK: Normal return NOT_FOUND: The object does not exist in the map. INVALID_ARGS: The given arguments is invalid. UNKNOWN: Unknown error

Implements doil::IORB.

Definition at line 361 of file CORBAManager.cpp.

◆ init()

CORBAManager * doil::CORBA::CORBAManager::init ( coil::Properties  prop)
throw (
)
static

initializer

Definition at line 42 of file CORBAManager.cpp.

◆ initOrb()

void doil::CORBA::CORBAManager::initOrb ( coil::Properties  prop)
protected

CORBA ORB initialization.

Initialize ORB based on the configuration given by arguments.

Returns
ORB initialization result (Successful:true, Failed:false)

Definition at line 511 of file CORBAManager.cpp.

◆ instance()

CORBAManager & doil::CORBA::CORBAManager::instance ( )
throw (
)
static

getting instance

Definition at line 64 of file CORBAManager.cpp.

◆ name()

const char * doil::CORBA::CORBAManager::name ( )
throw (
)
virtual

Getting ORB's name.

This operation will return ORB's name.

Implements doil::IORB.

Definition at line 78 of file CORBAManager.cpp.

◆ operator=()

CORBAManager& doil::CORBA::CORBAManager::operator= ( const CORBAManager rhs)
private

◆ registerFactory()

ReturnCode_t doil::CORBA::CORBAManager::registerFactory ( const char *  id,
doil::ServantNewFunc  new_func,
doil::ServantDeleteFunc  delete_func 
)
throw (
)
virtual

Register servant's factory.

This operation will register servant's factory.

Returns
OK: Normal return ALREADY_EXISTS: Given factory already exists. INVALID_ARGS: One or more given arguments are invalid. UNKNOWN: Unknown error

Implements doil::IORB.

Definition at line 148 of file CORBAManager.cpp.

◆ registerProxyFactory()

ReturnCode_t doil::CORBA::CORBAManager::registerProxyFactory ( const char *  id,
doil::ProxyNewFunc  new_func,
doil::ProxyDeleteFunc  delete_func 
)
throw (
)
virtual

Definition at line 165 of file CORBAManager.cpp.

◆ run()

void doil::CORBA::CORBAManager::run ( )
throw (
)
virtual

Definition at line 83 of file CORBAManager.cpp.

◆ shutdown()

void doil::CORBA::CORBAManager::shutdown ( )
throw (
)
virtual

Shutdown ORB.

This operation will shutdown ORB

Implements doil::IORB.

Definition at line 91 of file CORBAManager.cpp.

◆ toImpl() [1/2]

doil::ImplBase * doil::CORBA::CORBAManager::toImpl ( doil::ServantBase servant)
throw (
)
virtual

Getting impl object by servant.

This operation will return an impl object by given servant. NOT_FOUND error will be returned if the given servant's impl object does not exist in the ative object map.

Returns
OK: Normal return NOT_FOUND: The object does not exist in the map. INVALID_ARGS: The given arguments is invalid. UNKNOWN: Unknown error

Implements doil::IORB.

Definition at line 342 of file CORBAManager.cpp.

◆ toImpl() [2/2]

doil::ImplBase * doil::CORBA::CORBAManager::toImpl ( ::CORBA::Object_ptr  obj)
throw (
)

Convert CORBA Object_ptr to Impl related to it.

Definition at line 396 of file CORBAManager.cpp.

◆ toLocal()

doil::LocalBase* doil::CORBA::CORBAManager::toLocal ( ::CORBA::Object_ptr &  obj)
inline

Definition at line 57 of file CORBAManager.h.

◆ toReference() [1/2]

CORBA::Object_ptr doil::CORBA::CORBAManager::toReference ( doil::ImplBase impl)
throw (
)

Converting Impl object to object reference.

Definition at line 427 of file CORBAManager.cpp.

◆ toReference() [2/2]

CORBA::Object_ptr doil::CORBA::CORBAManager::toReference ( doil::ServantBase servant)
throw (
)

Converting Servant object to object reference.

Definition at line 440 of file CORBAManager.cpp.

◆ toServant() [1/2]

doil::ServantBase * doil::CORBA::CORBAManager::toServant ( doil::ImplBase lobj)
throw (
)
virtual

Getting servant object by impl object.

This operation will return an servant object by given impl object. NOT_FOUND error will be returned if the given name's servant object does not exist in the ative object map.

Returns
OK: Normal return NOT_FOUND: The object does not exist in the map. INVALID_ARGS: The given arguments is invalid. UNKNOWN: Unknown error

Implements doil::IORB.

Definition at line 379 of file CORBAManager.cpp.

◆ toServant() [2/2]

doil::ServantBase * doil::CORBA::CORBAManager::toServant ( ::CORBA::Object_ptr  obj)
throw (
)

Getting ORB pointer.

Definition at line 455 of file CORBAManager.cpp.

Member Data Documentation

◆ m_config

coil::Properties doil::CORBA::CORBAManager::m_config
private

Definition at line 559 of file CORBAManager.h.

◆ m_factory

ObjectManager<const char*, ServantFactory, FactoryPred> doil::CORBA::CORBAManager::m_factory
private

Definition at line 666 of file CORBAManager.h.

◆ m_factory_proxy

ObjectManager<const char*, ProxyFactory, ProxyFactoryPred> doil::CORBA::CORBAManager::m_factory_proxy
private

Definition at line 688 of file CORBAManager.h.

◆ m_map

ObjectManager<const char*, Entry, EntryPred> doil::CORBA::CORBAManager::m_map
private

Definition at line 599 of file CORBAManager.h.

◆ m_orb

::CORBA::ORB_ptr doil::CORBA::CORBAManager::m_orb
private

Definition at line 550 of file CORBAManager.h.

◆ m_poa

::PortableServer::POA_ptr doil::CORBA::CORBAManager::m_poa
private

Definition at line 553 of file CORBAManager.h.

◆ m_poaManager

::PortableServer::POAManager_ptr doil::CORBA::CORBAManager::m_poaManager
private

Definition at line 556 of file CORBAManager.h.

◆ manager

CORBAManager * doil::CORBA::CORBAManager::manager = NULL
staticprivate

Definition at line 546 of file CORBAManager.h.

◆ mutex

coil::Mutex doil::CORBA::CORBAManager::mutex
staticprivate

Definition at line 547 of file CORBAManager.h.


The documentation for this class was generated from the following files:


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Feb 28 2022 23:00:46