#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... | |
IORB * | deleteORB (const char *name) throw () |
Delete registered ORB by name. More... | |
ImplBase * | getObject (const char *name) throw () |
Delete object. More... | |
const std::vector< ImplBase * > | getObjects () throw () |
Delete object. More... | |
IORB * | getORB (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 ORBManager * | init (coil::Properties prop) throw () |
initializer More... | |
static ORBManager & | instance () throw () |
getting instance More... | |
Private Types | |
typedef ObjectManager< const char *, ImplBase, ImplPred > | ImplMap |
typedef ObjectManager< const char *, IORB, ORBPred > | ORBMap |
Private Member Functions | |
ORBManager & | operator= (const ORBManager &) |
ORBManager () | |
ORBManager (const ORBManager &) | |
~ORBManager () | |
Private Attributes | |
ImplMap | m_impls |
ORBMap | m_orbs |
Static Private Attributes | |
static ORBManager * | manager = NULL |
static coil::Mutex | mutex |
Definition at line 31 of file ORBManager.h.
|
private |
Definition at line 347 of file ORBManager.h.
|
private |
Definition at line 320 of file ORBManager.h.
|
inlineprivate |
Definition at line 285 of file ORBManager.h.
|
private |
|
inlineprivate |
Definition at line 288 of file ORBManager.h.
|
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.
|
virtual |
Deactivate object.
This operation will deactivate a given object on ORBs.
Definition at line 240 of file ORBManager.cpp.
|
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.
|
static |
initializer
Definition at line 39 of file ORBManager.cpp.
|
static |
getting instance
Definition at line 61 of file ORBManager.cpp.
|
private |
|
virtual |
shutdown ORBManager
This operation will shutdown all the registered ORBs calling IORB::shutdown() operation.
Definition at line 75 of file ORBManager.cpp.
|
private |
Definition at line 348 of file ORBManager.h.
|
private |
Definition at line 321 of file ORBManager.h.
|
staticprivate |
Definition at line 296 of file ORBManager.h.
|
staticprivate |
Definition at line 297 of file ORBManager.h.