#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. | |
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. | |
IORB * | deleteORB (const char *name) throw () |
Delete registered ORB by name. | |
ImplBase * | getObject (const char *name) throw () |
Delete object. | |
const std::vector< ImplBase * > | getObjects () throw () |
Delete object. | |
IORB * | getORB (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 ORBManager * | init (coil::Properties prop) throw () |
initializer | |
static ORBManager & | instance () throw () |
getting instance | |
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.
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.
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.
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.
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 [static, private] |
Definition at line 296 of file ORBManager.h.
coil::Mutex doil::ORBManager::mutex [static, private] |
Definition at line 297 of file ORBManager.h.