#include <Manager.h>
Public Member Functions | |
void | setModuleInitProc (ModuleInitProc proc) |
Run the Manager. | |
bool | activateManager () |
Activate Manager. | |
void | runManager (bool no_block=false) |
Run the Manager. | |
void | load (const char *fname, const char *initfunc) |
[CORBA interface] Load module | |
void | unload (const char *fname) |
Unload module. | |
void | unloadAll () |
Unload module. | |
std::vector< std::string > | Manager::getLoadedModules () |
Get loaded module names. | |
std::vector< std::string > | getLoadableModules () |
Get loadable module names. | |
bool | registerFactory (Properties profile, RtcNewFunc new_func, RtcDeleteFunc delete_func) |
Register RT-Component Factory. | |
std::vector< std::string > | getModulesFactories () |
Get the list of all RT-Component Factory. | |
RtcBase * | createComponent (const char *module_name) |
Create RT-Component. | |
bool | registerComponent (RtcBase *comp) |
Register RT-Component directly without Factory. | |
void | deleteComponent (const char *instance_name) |
Unregister RT-Component that is registered in the Manager. | |
RtcBase * | getComponent (const char *instance_name) |
Get RT-Component's pointer. | |
std::vector< RtcBase * > | getComponents () |
Get all RT-Component's pointer. | |
CORBA::ORB_ptr | getORB () |
Get the pointer to the ORB. | |
PortableServer::POA_ptr | getPOA () |
Get the pointer to the RootPOA. | |
PortableServer::POAManager_ptr | getPOAManager () |
Static Public Member Functions | |
static Manager * | init (int argc, char **argv) |
Initializa manager. | |
static Manager & | instance () |
Get instance of the manager. | |
Protected Types | |
typedef ObjectManager< std::string, RtcBase, InstanceName > | ComponentManager |
typedef ObjectManager< const char *, FactoryBase, FactoryPredicate > | FactoryManager |
The ComponentFactory. | |
Protected Member Functions | |
Manager () | |
Manager (const Manager &manager) | |
void | initManager (int argc, char **argv) |
Manager internal initialization. | |
bool | initORB () |
CORBA ORB initialization. | |
bool | initNaming () |
NamingManager initialization. | |
bool | initLogger () |
System logger initialization. | |
bool | mergeProperty (Properties &prop, const char *file_name) |
std::string | formatString (const char *naming_format, Properties &prop) |
Protected Attributes | |
CORBA::ORB_var | m_pORB |
The pointer to the ORB. | |
PortableServer::POA_var | m_pPOA |
The pointer to the POA. | |
PortableServer::POAManager_var | m_pPOAManager |
The pointer to the POAManager. | |
ModuleInitProc | m_initProc |
Properties * | m_config |
The pointer to the Property. | |
ModuleManager * | m_module |
The pointer to the ModuleManager. | |
NamingManager * | m_namingManager |
The pointer to the ModuleManager. | |
CorbaObjectManager * | m_objManager |
Logbuf | m_Logbuf |
Logger buffer. | |
MedLogbuf | m_MedLogbuf |
Logger mediation buffer. | |
LogStream | rtcout |
Logger stream. | |
ComponentManager | m_compManager |
The ComponentManager. | |
FactoryManager | m_factory |
The ComponentManager. | |
OrbRunner * | m_runner |
Static Protected Attributes | |
static Manager * | manager |
The pointer to the Manager. | |
static ACE_Thread_Mutex | mutex |
The mutex of the pointer to the Manager. | |
Classes | |
struct | FactoryPredicate |
struct | InstanceName |
struct | ModuleFactories |
class | OrbRunner |
|
|
|
The ComponentFactory.
|
|
|
|
|
|
Activate Manager. This operation do the following,
This operationo should be invoked after Manager:init(), and before tunManager(). |
|
Create RT-Component.
|
|
Unregister RT-Component that is registered in the Manager.
|
|
|
|
Get RT-Component's pointer.
|
|
Get all RT-Component's pointer.
|
|
Get loadable module names.
|
|
Get the list of all RT-Component Factory.
|
|
Get the pointer to the ORB.
|
|
Get the pointer to the RootPOA.
|
|
|
|
Initializa manager. This is the static member function to tintialize the Manager. The Manager is initialized by given arguments. At the starting the manager, this static member function "must" be called from application program. The manager has two static functions to get the instance, "init()" and "instance()". Since initializing process is only performed by the "init()" function, the "init()" has to be called at the beginning of the lifecycle of the Manager. function.
|
|
System logger initialization.
|
|
Manager internal initialization.
|
|
NamingManager initialization.
|
|
CORBA ORB initialization.
|
|
Get instance of the manager. This is the static member function to get the instance of the Manager. Before calling this function, ensure that the initialization function "init()" is called.
|
|
[CORBA interface] Load module Load module (shared library, DLL etc..) by file name, and invoke initialize function.
|
|
Get loaded module names.
|
|
|
|
Register RT-Component directly without Factory.
|
|
Register RT-Component Factory.
|
|
Run the Manager. This operation processes the main event loop of the Manager. In this main loop, CORBA's ORB event loop or other processes are performed. As the default behavior, this operation is going to blocking mode and never returns until manager::destroy() is called. When the given argument "no_block" is set to "true", this operation creates a thread to process the event loop internally, and it doesn't block and returns.
|
|
Run the Manager. This operation sets the initial procedure call to process module initialization, other user defined initialization and so on. The given procedure will be called at the proper timing after the manager initialization, activation and run.
|
|
Unload module. Unload shared library.
|
|
Unload module. Unload all loaded shared library. |
|
The ComponentManager.
|
|
The pointer to the Property.
|
|
The ComponentManager.
|
|
|
|
Logger buffer.
|
|
Logger mediation buffer.
|
|
The pointer to the ModuleManager.
|
|
The pointer to the ModuleManager.
|
|
|
|
The pointer to the ORB.
|
|
The pointer to the POA.
|
|
The pointer to the POAManager.
|
|
|
|
The pointer to the Manager.
|
|
The mutex of the pointer to the Manager.
|
|
Logger stream.
|