19#ifndef _mtsCollectorEvent_h
20#define _mtsCollectorEvent_h
50 const std::string & interfaceName)
const;
78 CollectorEventVoid(
const std::string & componentName,
const std::string & interfaceName,
const std::string & eventName,
98 CollectorEventWrite(
const std::string & componentName,
const std::string & interfaceName,
const std::string & eventName,
164 const std::string & interfaceName);
178 const std::string & interfaceName,
179 const std::string & eventName);
181 const std::string & interfaceName,
182 const std::string & eventName);
191 const std::string & eventName);
194 const std::string & eventName);
Definition cmnNamedMap.h:54
mtsCollectorBase(const std::string &collectorName, const CollectorFileFormat fileFormat)
CollectorFileFormat
Definition mtsCollectorBase.h:51
@ COLLECTOR_FILE_FORMAT_CSV
Definition mtsCollectorBase.h:54
Definition mtsCollectorEvent.h:71
mtsCollectorEvent * Collector
Definition mtsCollectorEvent.h:77
void PrintHeader(std::ostream &outputStream, const CollectorFileFormat fileFormat)
CollectorEventVoid(const std::string &componentName, const std::string &interfaceName, const std::string &eventName, size_t eventId, mtsCollectorEvent *collector)
std::string InterfaceName
Definition mtsCollectorEvent.h:74
size_t EventId
Definition mtsCollectorEvent.h:76
std::string EventName
Definition mtsCollectorEvent.h:75
std::string ComponentName
Definition mtsCollectorEvent.h:73
Definition mtsCollectorEvent.h:89
const mtsGenericObject * ArgumentPrototype
Definition mtsCollectorEvent.h:95
mtsInterfaceRequired * InterfaceRequired
Definition mtsCollectorEvent.h:94
std::string InterfaceName
Definition mtsCollectorEvent.h:92
size_t EventId
Definition mtsCollectorEvent.h:96
std::string EventName
Definition mtsCollectorEvent.h:93
CollectorEventWrite(const std::string &componentName, const std::string &interfaceName, const std::string &eventName, size_t eventId, mtsCollectorEvent *collector)
void PrintHeader(std::ostream &outputStream, const CollectorFileFormat fileFormat)
void EventHandler(const mtsGenericObject &payload)
std::string ComponentName
Definition mtsCollectorEvent.h:91
mtsCollectorEvent * Collector
Definition mtsCollectorEvent.h:97
Definition mtsCollectorEvent.h:41
cmnNamedMap< InterfacesRequiredMap > ComponentsMap
Definition mtsCollectorEvent.h:59
const osaTimeServer * TimeServer
Definition mtsCollectorEvent.h:132
ComponentsMap ObservedComponents
Definition mtsCollectorEvent.h:60
size_t EventCounter
Definition mtsCollectorEvent.h:108
double ScheduledStartTime
Definition mtsCollectorEvent.h:121
bool AddObservedComponent(const std::string &componentName)
void StartCollection(const double &delayInSeconds) override
bool AddObservedInterface(const mtsComponent *componentPointer, const mtsInterfaceProvided *interfacePointer)
void StopCollection(const double &delayInSeconds) override
std::vector< CollectorEventVoid * > EventsVoid
Definition mtsCollectorEvent.h:112
bool AddObservedEventVoid(const std::string &componentName, const std::string &interfaceName, const std::string &eventName)
std::vector< CollectorEventWrite * > EventsWrite
Definition mtsCollectorEvent.h:113
bool AddObservedEventWrite(const mtsComponent *componentPointer, const mtsInterfaceProvided *interfacePointer, const std::string &eventName)
void PrintHeader(const CollectorFileFormat &fileFormat)
bool AddObservedEventWrite(const std::string &componentName, const std::string &interfaceName, const std::string &eventName)
void Startup(void) override
bool AddObservedInterface(const std::string &componentName, const std::string &interfaceName)
mtsCollectorEvent(const std::string &collectorName, const CollectorFileFormat fileFormat=mtsCollectorBase::COLLECTOR_FILE_FORMAT_CSV)
bool AddObservedComponent(const mtsComponent *componentPointer)
bool AddObservedEventVoid(const mtsComponent *componentPointer, const mtsInterfaceProvided *interfacePointer, const std::string &eventName)
bool Connect(void) override
cmnNamedMap< mtsInterfaceRequired > InterfacesRequiredMap
Definition mtsCollectorEvent.h:58
mtsInterfaceRequired * GetInterfaceRequiredFor(const mtsComponent *componentPointer, const mtsInterfaceProvided *interfacePointer)
mtsInterfaceProvided * CheckInterface(const mtsComponent *componentPointer, const std::string &interfaceName) const
void SaveEventVoid(const CollectorEventVoid *event)
void SetCollecting(bool collecting, double currentTime)
double ScheduledStopTime
Definition mtsCollectorEvent.h:125
void SaveEventWrite(const CollectorEventWrite *event, const mtsGenericObject &payload)
bool Collecting
Definition mtsCollectorEvent.h:117
virtual std::string GetDefaultOutputName(void) override
bool CheckCollectingStatus(void)
mtsComponent * CheckComponent(const std::string &componentName) const
Definition mtsComponent.h:150
Base class for data object in cisstMultiTask.
Definition mtsGenericObject.h:52
Definition mtsInterfaceProvided.h:98
Definition mtsInterfaceRequired.h:83
Class for relative time.
Definition osaTimeServer.h:74
#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
Defines a command with no argument.
Defines the state data table.