19 #ifndef DOIL_ORB_MANAGER_H 20 #define DOIL_ORB_MANAGER_H 24 #include <coil/Mutex.h> 119 const std::vector<IORB*>
getORBs()
throw();
177 const char* orbname =
"")
throw();
192 const char* orbname =
"")
throw();
208 const char* orbname =
"")
throw();
263 const std::vector<ImplBase*>
getObjects()
throw();
389 orbs_.push_back(orb);
399 orbs_.push_back(orb->
name());
415 const char* orbname =
"")
416 : m_impl(impl), m_orbname(orbname)
421 if (m_orbname.empty() || m_orbname == orb->
name())
424 retcodes_.push_back(orb->
name(),
ret);
445 : m_impl(impl), m_orbname(orbname)
450 if (m_orbname.empty() || m_orbname == orb->
name())
453 retcodes_.push_back(orb->
name(),
ret);
466 :
m_name(name), m_orbname(orbname)
471 if (m_orbname.empty() || m_orbname == orb->
name())
474 retcodes_.push_back(orb->
name(),
ret);
490 impls_.push_back(impl);
496 #endif // DOIL_ORB_MANAGER_H
ObjectManager< const char *, ImplBase, ImplPred > ImplMap
std::vector< IORB * > orbs_
virtual ReturnCodes deactivateObject(ImplBase *impl, const char *orbname="")
Deactivate object.
bool operator()(ImplBase *impl)
void operator()(ImplBase *impl)
A functor to deactivate a given impl object.
void operator()(IORB *orb)
std::vector< std::string > orbs_
virtual void shutdown()
shutdown ORBManager
ObjectManager< const char *, IORB, ORBPred > ORBMap
RTC::ReturnCode_t ret(RTC::Local::ReturnCode_t r)
void operator()(IORB *orb)
static ORBManager * manager
ImplBase * getObject(const char *name)
Delete object.
ORBManager & operator=(const ORBManager &)
void operator()(IORB *orb)
virtual ReturnCode_t deactivateObject(ImplBase *impl)=0
Deactivate object.
static ORBManager & instance()
getting instance
virtual void shutdown()=0
Shutdown ORB.
IORB * deleteORB(const char *name)
Delete registered ORB by name.
deactivate_impl(ImplBase *impl, const char *orbname="")
void operator()(IORB *orb)
virtual const char * name()=0
Getting ORB's name.
void operator()(IORB *orb)
virtual ReturnCode_t activateObject(ImplBase *impl)=0
Activate object.
const std::vector< ImplBase * > getObjects()
Delete object.
prop
Organization::get_organization_property ();.
std::vector< ImplBase * > impls_
ReturnCode_t addORB(IORB *orb)
Register an ORB to the ORBManager.
virtual const char * name()=0
Class represents a set of properties.
activate_impl(ImplBase *impl, const char *orbname="")
void operator()(IORB *orb)
bool operator()(IORB *orb)
const std::vector< std::string > availableORBs()
Get all the ORBs' name that are registered in this ORBManager.
static ORBManager * init(coil::Properties prop)
initializer
ImplPred(const char *name)
IORB * getORB(const char *name)
Get an ORB that is registered in this ORBManager.
ORBPred(const char *name)
deactivate_by_name(const char *name, const char *orbname="")
ReturnCode_t deleteObject(ImplBase *impl)
Delete object.
virtual ReturnCodes activateObject(ImplBase *impl, const char *orbname="")
Activate object.
A functor to activate a given impl object.
const std::vector< IORB * > getORBs()
Get all the ORBs that are registered in this ORBManager.