#include <Manager.h>
Public Member Functions | |
void | terminate () |
void | shutdown () |
void | join () |
Logbuf & | getLogbuf () |
Properties & | getConfig () |
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 > | 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. | |
bool | registerECFactory (const char *name, ECNewFunc new_func, ECDeleteFunc delete_func) |
std::vector< std::string > | getModulesFactories () |
Get the list of all RT-Component Factory. | |
RtcBase * | createComponent (const char *module_name) |
Create RT-Component. | |
void | cleanupComponent (RtcBase *comp) |
bool | registerComponent (RtcBase *comp) |
Register RT-Component directly without Factory. | |
bool | unregisterComponent (RtcBase *comp) |
bool | bindExecutionContext (RtcBase *comp) |
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. | |
typedef ObjectManager< const char *, ECFactoryBase, ECFactoryPredicate > | ECFactoryManager |
Protected Member Functions | |
Manager () | |
Protected Constructor. | |
Manager (const Manager &manager) | |
Protected Copy Constructor. | |
void | initManager (int argc, char **argv) |
Manager internal initialization. | |
void | shutdownManager () |
Manager internal finalization. | |
bool | initLogger () |
System logger initialization. | |
void | shutdownLogger () |
System Logger finalization. | |
bool | initORB () |
CORBA ORB initialization. | |
std::string | createORBOptions () |
ORB command option creation. | |
void | shutdownORB () |
ORB finalization. | |
bool | initNaming () |
NamingManager initialization. | |
void | shutdownNaming () |
void | shutdownComponents () |
void | configureComponent (RtcBase *comp) |
bool | initExecContext () |
bool | initTimer () |
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 |
User's initialization function's pointer. | |
Properties | m_config |
Managaer's configuration Properties. | |
ModuleManager * | m_module |
The pointer to the ModuleManager. | |
NamingManager * | m_namingManager |
The pointer to the ModuleManager. | |
CorbaObjectManager * | m_objManager |
Timer * | m_timer |
Timer Object. | |
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. | |
ECFactoryManager | m_ecfactory |
std::vector< ExecutionContextBase * > | m_ecs |
OrbRunner * | m_runner |
Terminator * | m_terminator |
Term | m_terminate |
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 | ECFactoryPredicate |
struct | FactoryPredicate |
struct | InstanceName |
struct | ModuleFactories |
class | OrbRunner |
struct | Term |
class | Terminator |
|
|
|
|
|
The ComponentFactory.
|
|
Protected Constructor.
|
|
Protected Copy Constructor.
|
|
Activate Manager. This operation do the following,
This operationo should be invoked after Manager:init(), and before tunManager(). |
|
|
|
|
|
|
|
Create RT-Component.
|
|
ORB command option creation.
|
|
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 loaded 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.
|
|
|
|
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.
|
|
|
|
|
|
System Logger finalization.
|
|
Manager internal finalization.
|
|
|
|
ORB finalization.
|
|
|
|
Unload module. Unload shared library.
|
|
Unload module. Unload all loaded shared library. |
|
|
|
The ComponentManager.
|
|
Managaer's configuration Properties.
|
|
|
|
|
|
The ComponentManager.
|
|
User's initialization function's pointer.
|
|
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.
|
|
|
|
|
|
|
|
Timer Object.
|
|
The pointer to the Manager.
|
|
The mutex of the pointer to the Manager.
|
|
Logger stream.
|