Classes | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes
doil::ORBManager Class Reference

#include <ORBManager.h>

List of all members.

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

Static Public Member Functions

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

Private Types

typedef ObjectManager< const
char *, ImplBase, ImplPred
ImplMap
typedef ObjectManager< const
char *, IORB, ORBPred
ORBMap

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 ( ) [inline, private]

Definition at line 285 of file ORBManager.h.

doil::ORBManager::ORBManager ( const ORBManager ) [private]
doil::ORBManager::~ORBManager ( ) [inline, private]

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.

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.

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

Definition at line 348 of file ORBManager.h.

Definition at line 321 of file ORBManager.h.

ORBManager * doil::ORBManager::manager = NULL [static, private]

Definition at line 296 of file ORBManager.h.

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 Thu Aug 27 2015 14:16:40