Classes | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
doil::ORBManager Class Reference

#include <ORBManager.h>

Classes

class  activate_impl
 A functor to activate a given impl object. More...
 
class  available_orbs
 
class  collect_impl
 
class  collect_orbs
 
class  deactivate_by_name
 
class  deactivate_impl
 A functor to deactivate a given impl object. More...
 
class  ImplPred
 
class  orb_shutdown
 
class  ORBPred
 

Public Member Functions

virtual ReturnCodes activateObject (ImplBase *impl, const char *orbname="") throw ()
 Activate object. More...
 
ReturnCode_t addORB (IORB *orb) throw ()
 Register an ORB to the ORBManager. More...
 
const std::vector< std::string > availableORBs () throw ()
 Get all the ORBs' name that are registered in this ORBManager. More...
 
virtual ReturnCodes deactivateObject (ImplBase *impl, const char *orbname="") throw ()
 Deactivate object. More...
 
virtual ReturnCodes deactivateObject (const char *name, const char *orbname="") throw ()
 Deactivate object. More...
 
ReturnCode_t deleteObject (ImplBase *impl) throw ()
 Delete object. More...
 
ReturnCode_t deleteObject (const char *name) throw ()
 Delete object. More...
 
IORBdeleteORB (const char *name) throw ()
 Delete registered ORB by name. More...
 
ImplBasegetObject (const char *name) throw ()
 Delete object. More...
 
const std::vector< ImplBase * > getObjects () throw ()
 Delete object. More...
 
IORBgetORB (const char *name) throw ()
 Get an ORB that is registered in this ORBManager. More...
 
const std::vector< IORB * > getORBs () throw ()
 Get all the ORBs that are registered in this ORBManager. More...
 
virtual void shutdown () throw ()
 shutdown ORBManager More...
 

Static Public Member Functions

static ORBManagerinit (coil::Properties prop) throw ()
 initializer More...
 
static ORBManagerinstance () throw ()
 getting instance More...
 

Private Types

typedef ObjectManager< const char *, ImplBase, ImplPredImplMap
 
typedef ObjectManager< const char *, IORB, ORBPredORBMap
 

Private Member Functions

ORBManageroperator= (const ORBManager &)
 
 ORBManager ()
 
 ORBManager (const ORBManager &)
 
 ~ORBManager ()
 

Private Attributes

ImplMap m_impls
 
ORBMap m_orbs
 

Static Private Attributes

static ORBManagermanager = NULL
 
static coil::Mutex mutex
 

Detailed Description

Definition at line 31 of file ORBManager.h.

Member Typedef Documentation

typedef ObjectManager<const char*, ImplBase, ImplPred> doil::ORBManager::ImplMap
private

Definition at line 347 of file ORBManager.h.

typedef ObjectManager<const char*, IORB, ORBPred> doil::ORBManager::ORBMap
private

Definition at line 320 of file ORBManager.h.

Constructor & Destructor Documentation

doil::ORBManager::ORBManager ( )
inlineprivate

Definition at line 285 of file ORBManager.h.

doil::ORBManager::ORBManager ( const ORBManager )
private
doil::ORBManager::~ORBManager ( )
inlineprivate

Definition at line 288 of file ORBManager.h.

Member Function Documentation

ReturnCodes doil::ORBManager::activateObject ( ImplBase impl,
const char *  orbname = "" 
)
throw (
)
virtual

Activate object.

This operation will activate a given object on ORBs.

Definition at line 212 of file ORBManager.cpp.

ReturnCode_t doil::ORBManager::addORB ( IORB orb)
throw (
)

Register an ORB to the ORBManager.

This operation will register an ORB that inherits IORB interface to the ORBManager.

Definition at line 96 of file ORBManager.cpp.

const std::vector< std::string > doil::ORBManager::availableORBs ( )
throw (
)

Get all the ORBs' name that are registered in this ORBManager.

This operation will return all the names of registered ORBs. Zero length list will be returned if no ORB registered.

Definition at line 166 of file ORBManager.cpp.

ReturnCodes doil::ORBManager::deactivateObject ( ImplBase impl,
const char *  orbname = "" 
)
throw (
)
virtual

Deactivate object.

This operation will deactivate a given object on ORBs.

Definition at line 240 of file ORBManager.cpp.

ReturnCodes doil::ORBManager::deactivateObject ( const char *  name,
const char *  orbname = "" 
)
throw (
)
virtual

Deactivate object.

This operation will deactivate a given object on ORBs.

Definition at line 261 of file ORBManager.cpp.

ReturnCode_t doil::ORBManager::deleteObject ( ImplBase impl)
throw (
)

Delete object.

This operation will delete a given object from ORBManager's list.

ReturnCode_t doil::ORBManager::deleteObject ( const char *  name)
throw (
)

Delete object.

This operation will delete a given object from ORBManager's list.

IORB * doil::ORBManager::deleteORB ( const char *  name)
throw (
)

Delete registered ORB by name.

This operation will delete the ORB from ORBManager's list. This operation never delete the ORB itself. ORB's pointer deleted from the list will be returned. NULL will be returned if there is no specified name's ORB.

Definition at line 189 of file ORBManager.cpp.

ImplBase * doil::ORBManager::getObject ( const char *  name)
throw (
)

Delete object.

This operation will returen register objects.

Definition at line 298 of file ORBManager.cpp.

const std::vector< ImplBase * > doil::ORBManager::getObjects ( )
throw (
)

Delete object.

This operation will returen register objects.

Definition at line 281 of file ORBManager.cpp.

IORB * doil::ORBManager::getORB ( const char *  name)
throw (
)

Get an ORB that is registered in this ORBManager.

This operation will return an registered ORB specified as the name. NULL will be returned if no ORB found in this ORBManager.

Definition at line 119 of file ORBManager.cpp.

const std::vector< IORB * > doil::ORBManager::getORBs ( )
throw (
)

Get all the ORBs that are registered in this ORBManager.

This operation will return all the registered ORBs. Zero length list will be returned if no ORB registered.

Definition at line 143 of file ORBManager.cpp.

ORBManager * doil::ORBManager::init ( coil::Properties  prop)
throw (
)
static

initializer

Definition at line 39 of file ORBManager.cpp.

ORBManager & doil::ORBManager::instance ( )
throw (
)
static

getting instance

Definition at line 61 of file ORBManager.cpp.

ORBManager& doil::ORBManager::operator= ( const ORBManager )
private
void doil::ORBManager::shutdown ( )
throw (
)
virtual

shutdown ORBManager

This operation will shutdown all the registered ORBs calling IORB::shutdown() operation.

Definition at line 75 of file ORBManager.cpp.

Member Data Documentation

ImplMap doil::ORBManager::m_impls
private

Definition at line 348 of file ORBManager.h.

ORBMap doil::ORBManager::m_orbs
private

Definition at line 321 of file ORBManager.h.

ORBManager * doil::ORBManager::manager = NULL
staticprivate

Definition at line 296 of file ORBManager.h.

coil::Mutex doil::ORBManager::mutex
staticprivate

Definition at line 297 of file ORBManager.h.


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


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Jun 10 2019 14:08:00