32#ifndef _mtsManagerComponent_h
33#define _mtsManagerComponent_h
96 std::vector<mtsDescriptionComponent> & descriptions)
const;
101 std::vector<mtsDescriptionComponentClass> & listOfComponentClasses)
const;
129 bool ConnectInternal(
const std::string & clientComponentName,
const std::string & clientInterfaceName,
130 const std::string & serverComponentName,
const std::string & serverInterfaceName,
131 const std::string & requestComponentName);
133 bool DisconnectInternal(
const std::string & clientComponentName,
const std::string & clientInterfaceName,
134 const std::string & serverComponentName,
const std::string & serverInterfaceName,
135 const std::string & requestComponentName);
168 const std::string & processName,
const std::string & componentName,
const std::string & interfaceName);
Definition cmnNamedMap.h:54
Definition mtsComponent.h:150
Definition mtsManagerComponentServices.h:36
Definition mtsParameterTypes.h:869
Definition mtsComponentState.h:34
Definition mtsParameterTypes.h:749
Definition mtsParameterTypes.h:58
Definition mtsParameterTypes.h:624
Definition mtsParameterTypes.h:506
Definition mtsParameterTypes.h:289
Definition mtsParameterTypes.h:974
Definition mtsFunctionWrite.h:37
Definition mtsFunctionWriteReturn.h:38
Definition mtsInterfaceCommon.h:888
Definition mtsInterfaceCommon.h:1007
Definition mtsParameterTypesOld.h:84
mtsManagerComponentBase(const std::string &componentName)
Definition mtsManagerComponent.h:48
void ComponentRemove(const std::string &component, bool &result)
bool DisconnectInternal(const std::string &clientComponentName, const std::string &clientInterfaceName, const std::string &serverComponentName, const std::string &serverInterfaceName, const std::string &requestComponentName)
ConnectionIDType ConnectionID
Definition mtsManagerComponent.h:59
mtsFunctionWrite InterfaceComponentEvents_AddComponent
Definition mtsManagerComponent.h:111
void ComponentDisconnect(const mtsDescriptionConnection &arg, bool &result)
mtsFunctionWrite InterfaceComponentEvents_AddConnection
Definition mtsManagerComponent.h:112
void GetNamesOfProcesses(std::vector< std::string > &names) const
void ComponentGetState(const mtsDescriptionComponent &component, mtsComponentState &state) const
void ComponentCreate(const mtsDescriptionComponent &componentDescription, bool &result)
void ComponentGet(const std::string &componentName, mtsComponentPointer &componentPtr) const
InterfaceComponentFunctionMapType InterfaceComponentFunctionMap
Definition mtsManagerComponent.h:73
static std::string GetInterfaceUID(const std::string &processName, const std::string &componentName, const std::string &interfaceName)
void GetListOfComponentClasses(const std::string &processName, std::vector< mtsDescriptionComponentClass > &listOfComponentClasses) const
bool FindByConnectionID(mtsDescriptionConnection &arg) const
void GetInterfaceRequiredDescription(const mtsDescriptionInterface &intfc, mtsInterfaceRequiredDescription &description) const
void ComponentConfigure(const mtsDescriptionComponent &arg)
void HandleChangeStateFromComponent(const mtsComponentStateChange &componentStateChange)
void GetNamesOfInterfaces(const mtsDescriptionComponent &component, mtsDescriptionInterface &interfaces) const
mtsFunctionWrite InterfaceComponentEvents_ChangeState
Definition mtsManagerComponent.h:114
bool DisconnectFromManagerComponent(const std::string &componentName)
Disconnect local component from manager component (disconnect InterfaceInternal.Required - InterfaceC...
void GetInterfaceProvidedDescription(const mtsDescriptionInterface &intfc, mtsInterfaceProvidedDescription &description) const
void GetDescriptionsOfComponents(const std::string &processName, std::vector< mtsDescriptionComponent > &descriptions) const
cmnNamedMap< mtsComponent > ComponentMapType
Definition mtsManagerComponent.h:55
mtsFunctionWrite InterfaceComponentEvents_RemoveConnection
Definition mtsManagerComponent.h:113
cmnNamedMap< InterfaceComponentFunctionType > InterfaceComponentFunctionMapType
Definition mtsManagerComponent.h:72
mtsComponent * GetComponent(const std::string &componentName) const
bool ConnectInternal(const std::string &clientComponentName, const std::string &clientInterfaceName, const std::string &serverComponentName, const std::string &serverInterfaceName, const std::string &requestComponentName)
void ComponentStop(const mtsComponentStatusControl &arg)
void LoadLibrary(const mtsDescriptionLoadLibrary &lib, bool &result) const
void ComponentAdd(const mtsComponentPointer &componentPtr, bool &result)
void Startup(void) override
void Cleanup(void) override
ComponentMapType ComponentMap
Definition mtsManagerComponent.h:56
void ComponentStart(const mtsComponentStatusControl &arg)
void ComponentResume(const mtsComponentStatusControl &arg)
bool AddNewClientComponent(const std::string &clientComponentName)
bool AddInterfaceComponent(void)
void ComponentConnect(const mtsDescriptionConnection &arg, bool &result)
bool ConnectToManagerComponent(const std::string &componentName)
Connect a local component which has internal interfaces to the manager component (connect InterfaceIn...
LogInterface Logger
Definition mtsManagerComponent.h:125
void GetListOfConnections(std::vector< mtsDescriptionConnection > &listOfConnections) const
void GetNamesOfComponents(const std::string &processName, std::vector< std::string > &names) const
void GetDescriptionsOfInterfaces(const mtsDescriptionComponent &component, mtsDescriptionInterfaceFull &interfaces) const
#define CMN_DECLARE_SERVICES_INSTANTIATION(className)
Definition cmnClassRegisterMacros.h:199
const int CMN_NO_DYNAMIC_CREATION
Definition cmnClassRegisterMacros.h:325
#define CISST_EXPORT
Definition cmnExportMacros.h:50
#define CMN_LOG_ALLOW_DEFAULT
Definition cmnLogLoD.h:76
Declaration of cmnNamedMap.
unsigned int ConnectionIDType
Definition mtsForwardDeclarations.h:149
Declaration of Base Class for Manager Components.
Definition mtsManagerComponent.h:65
mtsFunctionWriteReturn RemoveObserverList
Definition mtsManagerComponent.h:69
mtsFunctionWriteReturn AddObserverList
Definition mtsManagerComponent.h:67
mtsFunctionWriteReturn RemoveEndUserInterface
Definition mtsManagerComponent.h:68
mtsFunctionWriteReturn GetEndUserInterface
Definition mtsManagerComponent.h:66
Definition mtsManagerComponent.h:121
mtsFunctionWrite EventPrintLog
Definition mtsManagerComponent.h:123
void PrintLog(const mtsLogMessage &log)