 | RTXI 2.4 The Real-Time eXperiment Interface Documentation |
Go to the documentation of this file. 76 memset(params,0,
sizeof(params));
83 for (
size_t i=0; i<nparams; ++i)
84 if (!strcmp(params[i].name,nam))
85 return params[i].value;
91 for (
size_t i=0; i<nparams; ++i)
92 if (!strcmp(params[i].name,nam))
94 params[i].value = val;
98 if (nparams >= MAX_PARAMS)
101 params[nparams].name = nam;
102 params[nparams].value = val;
106 Event::Manager::Manager(
void) {}
108 Event::Manager::~Manager(
void) {}
114 for (std::list<Handler *>::iterator i = handlerList.begin(),end = handlerList.end(); i != end; ++i)
115 (*i)->receiveEvent(event);
121 i->receiveEventRT(event);
124 void Event::Manager::registerHandler(
Handler *handler)
127 handlerList.insert(handlerList.end(),handler);
130 void Event::Manager::unregisterHandler(Handler *handler)
133 handlerList.remove(handler);
136 void Event::Manager::registerRTHandler(RTHandler *handler)
138 rthandlerList.insert(rthandlerList.end(),*handler);
141 void Event::Manager::unregisterRTHandler(RTHandler *handler)
143 rthandlerList.remove(*handler);
void postEvent(const Object *event)
const char * WORKSPACE_PARAMETER_CHANGE_EVENT
const char * RT_DEVICE_INSERT_EVENT
const char * ASYNC_DATA_EVENT
const char * RT_THREAD_REMOVE_EVENT
const char * SETTINGS_OBJECT_REMOVE_EVENT
const char * RT_POSTPERIOD_EVENT
void * getParam(const char *) const
virtual void receiveEvent(const Object *event)
static Manager * getInstance(void)
const char * IO_BLOCK_INSERT_EVENT
const char * RT_DEVICE_REMOVE_EVENT
void postEventRT(const Object *event)
const char * RT_THREAD_INSERT_EVENT
const char * PAUSE_GENICAM_RECORDING_EVENT
virtual void receiveEventRT(const Object *event)
const char * OPEN_FILE_EVENT
const char * RT_PERIOD_EVENT
const char * SETTINGS_OBJECT_INSERT_EVENT
const char * START_GENICAM_RECORDING_EVENT
const char * IO_LINK_REMOVE_EVENT
const char * STOP_GENICAM_RECORDING_EVENT
const char * IO_BLOCK_REMOVE_EVENT
const char * THRESHOLD_CROSSING_EVENT
const char * GENICAM_SNAPSHOT_EVENT
const char * RT_PREPERIOD_EVENT
const char * START_RECORDING_EVENT
const char * IO_LINK_INSERT_EVENT
const char * STOP_RECORDING_EVENT
const char * PLUGIN_INSERT_EVENT
const char * PLUGIN_REMOVE_EVENT
void setParam(const char *, void *)