19 #ifndef RTC_COMPONENTACTIONLISTENER_H
20 #define RTC_COMPONENTACTIONLISTENER_H
27 #include <rtm/idl/RTCSkel.h>
148 static const char* typeString[] =
155 "PRE_ON_DEACTIVATED",
160 "PRE_ON_STATE_UPDATE",
161 "PRE_ON_RATE_CHANGED",
162 "PRE_COMPONENT_ACTION_LISTENER_NUM"
311 static const char* typeString[] =
313 "POST_ON_INITIALIZE",
318 "POST_ON_DEACTIVATED",
323 "POST_ON_STATE_UPDATE",
324 "POST_ON_RATE_CHANGED",
325 "POST_COMPONENT_ACTION_LISTENER_NUM"
329 return typeString[type];
359 ReturnCode_t ret) = 0;
431 static const char* typeString[] =
435 "PORT_ACTION_LISTENER_NUM"
465 virtual void operator()(const ::RTC::PortProfile& pprof) = 0;
538 static const char* typeString[] =
542 "EC_ACTION_LISTENER_NUM"
596 typedef std::pair<PreComponentActionListener*, bool> Entry;
676 void notify(UniqueId ec_id);
679 std::vector<Entry> m_listeners;
702 typedef std::pair<PostComponentActionListener*, bool> Entry;
783 void notify(UniqueId ec_id, ReturnCode_t ret);
786 std::vector<Entry> m_listeners;
810 typedef std::pair<PortActionListener*, bool> Entry;
891 void notify(
const RTC::PortProfile& pprofile);
894 std::vector<Entry> m_listeners;
916 typedef std::pair<ExecutionContextActionListener*, bool> Entry;
997 void notify(UniqueId ec_id);
1000 std::vector<Entry> m_listeners;
1070 #endif // RTC_COMPONENTACTIONLISTENER_H
virtual void operator()(UniqueId ec_id)=0
Virtual Callback function.
Definition: ComponentActionListener.h:486
Definition: ComponentActionListener.h:228
Definition: ComponentActionListener.h:59
Definition: ComponentActionListener.h:227
static const char * toString(PortActionListenerType type)
Convert PreComponentActionListenerType into the string.
Definition: ComponentActionListener.h:429
PreComponentActionListener holder class.
Definition: ComponentActionListener.h:594
void addListener(PreComponentActionListener *listener, bool autoclean)
Add the listener.
Definition: ComponentActionListener.h:485
Definition: ComponentActionListener.h:64
PostComponentActionListenerType
The types of ConnectorDataListener.
Definition: ComponentActionListener.h:219
virtual ~PostComponentActionListener()
Destructor.
ExecutionContextActionListener holder class.
Definition: ComponentActionListener.h:914
PortActionListener holder class.
Definition: ComponentActionListener.h:808
Definition: ComponentActionListener.h:61
Definition: ComponentActionListener.h:233
Mutex class.
Definition: Mutex.h:40
PostComponentActionListenerHolder postaction_[POST_COMPONENT_ACTION_LISTENER_NUM]
PostComponentActionType listener array The PostComponentActionType listener is stored.
Definition: ComponentActionListener.h:1042
Definition: ComponentActionListener.h:487
virtual ~PortActionListener()
Destructor.
Definition: ComponentActionListener.h:67
Definition: ComponentActionListener.h:71
virtual ~PortActionListenerHolder()
Destructor.
PortActionListenerType
The types of PortActionListener.
Definition: ComponentActionListener.h:376
Definition: ComponentActionListener.h:226
void removeListener(PreComponentActionListener *listener)
Remove the listener.
static const char * toString(ExecutionContextActionListenerType type)
Convert PreComponentActionListenerType into the string.
Definition: ComponentActionListener.h:536
Definition: ComponentActionListener.h:380
PreComponentActionListenerType
The types of ConnectorDataListener.
Definition: ComponentActionListener.h:57
Definition: ComponentActionListener.h:62
ExecutionContextActionListenerHolder ecaction_[EC_ACTION_LISTENER_NUM]
ExecutionContextActionType listener array The ExecutionContextActionType listener is stored...
Definition: ComponentActionListener.h:1064
Definition: ComponentActionListener.h:68
void notify(const RTC::PortProfile &pprofile)
Notify listeners.
PreComponentActionListener class.
Definition: ComponentActionListener.h:120
Definition: ComponentActionListener.h:379
void removeListener(PostComponentActionListener *listener)
Remove the listener.
Definition: ComponentActionListener.h:231
void notify(UniqueId ec_id, ReturnCode_t ret)
Notify listeners.
virtual void operator()(UniqueId ec_id, ReturnCode_t ret)=0
Virtual Callback function.
Definition: ComponentActionListener.h:66
Definition: ComponentActionListener.h:69
virtual ~PreComponentActionListenerHolder()
Destructor.
PortActionListenerHolder()
Constructor.
PortActionListenerHolder portaction_[PORT_ACTION_LISTENER_NUM]
PortActionType listener array The PortActionType listener is stored.
Definition: ComponentActionListener.h:1053
ExecutionContextHandle_t UniqueId
Definition: ComponentActionListener.h:32
Definition: ComponentActionListener.h:229
static const char * toString(PostComponentActionListenerType type)
Convert PostComponentActionListenerType into the string.
Definition: ComponentActionListener.h:309
Definition: ComponentActionListener.h:221
ComponentActionListeners class.
Definition: ComponentActionListener.h:1018
Definition: ComponentActionListener.h:378
void addListener(PostComponentActionListener *listener, bool autoclean)
Add the listener.
void removeListener(PortActionListener *listener)
Remove the listener.
virtual void operator()(UniqueId ec_id)=0
Virtual Callback function.
void notify(UniqueId ec_id)
Notify listeners.
Definition: ComponentActionListener.h:222
ExecutionContextActionListenerHolder()
Constructor.
void removeListener(ExecutionContextActionListener *listener)
Remove the listener.
PostComponentActionListenerHolder()
Constructor.
virtual ~ExecutionContextActionListenerHolder()
Destructor.
Definition: ComponentActionListener.h:70
PostComponentActionListener holder class.
Definition: ComponentActionListener.h:700
virtual void operator()(const ::RTC::PortProfile &pprof)=0
Virtual Callback function.
static const char * toString(PreComponentActionListenerType type)
Convert PreComponentActionListenerType into the string.
Definition: ComponentActionListener.h:146
void addListener(ExecutionContextActionListener *listener, bool autoclean)
Add the listener.
PreComponentActionListenerHolder preaction_[PRE_COMPONENT_ACTION_LISTENER_NUM]
PreComponentActionListenerType listener array The PreComponentActionListenerType listener is stored...
Definition: ComponentActionListener.h:1031
Definition: ComponentActionListener.h:225
Definition: ComponentActionListener.h:223
Definition: ComponentActionListener.h:65
Definition: ComponentActionListener.h:224
ExecutionContextActionListenerType
The types of ExecutionContextActionListener.
Definition: ComponentActionListener.h:483
PreComponentActionListenerHolder()
Constructor.
virtual ~PostComponentActionListenerHolder()
Destructor.
Definition: ComponentActionListener.h:230
PortActionListener class.
Definition: ComponentActionListener.h:403
virtual ~ExecutionContextActionListener()
Destructor.
virtual ~PreComponentActionListener()
Destructor.
Definition: ComponentActionListener.h:60
Definition: ComponentActionListener.h:63
void addListener(PortActionListener *listener, bool autoclean)
Add the listener.
PostComponentActionListener class.
Definition: ComponentActionListener.h:283
Definition: ComponentActionListener.h:232
void notify(UniqueId ec_id)
Notify listeners.
ExecutionContextActionListener class.
Definition: ComponentActionListener.h:510