19 #ifndef RTC_COMPONENTACTIONLISTENER_H 20 #define RTC_COMPONENTACTIONLISTENER_H 24 #include <coil/Mutex.h> 25 #include <coil/Guard.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];
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);
702 typedef std::pair<PostComponentActionListener*, bool>
Entry;
810 typedef std::pair<PortActionListener*, bool>
Entry;
891 void notify(
const RTC::PortProfile& pprofile);
916 typedef std::pair<ExecutionContextActionListener*, bool>
Entry;
997 void notify(UniqueId
ec_id);
1070 #endif // RTC_COMPONENTACTIONLISTENER_H
std::pair< PortActionListener *, bool > Entry
static const char * toString(PortActionListenerType type)
Convert PreComponentActionListenerType into the string.
PreComponentActionListener holder class.
EXECUTION_HANDLE_TYPE_NATIVE ExecutionContextHandle_t
PostComponentActionListenerType
The types of ConnectorDataListener.
coil::Guard< coil::Mutex > Guard
ExecutionContextActionListener holder class.
PortActionListener holder class.
PortActionListenerType
The types of PortActionListener.
RTC::ReturnCode_t ret(RTC::Local::ReturnCode_t r)
std::pair< ExecutionContextActionListener *, bool > Entry
coil::Guard< coil::Mutex > Guard
static const char * toString(ExecutionContextActionListenerType type)
Convert PreComponentActionListenerType into the string.
PreComponentActionListenerType
The types of ConnectorDataListener.
coil::Guard< coil::Mutex > Guard
std::vector< Entry > m_listeners
PreComponentActionListener class.
ExecutionContextHandle_t UniqueId
std::vector< Entry > m_listeners
static const char * toString(PostComponentActionListenerType type)
Convert PostComponentActionListenerType into the string.
ComponentActionListeners class.
std::pair< PreComponentActionListener *, bool > Entry
virtual void operator()(UniqueId ec_id)=0
Virtual Callback function.
virtual ~PreComponentActionListener()
Destructor.
PostComponentActionListener holder class.
static const char * toString(PreComponentActionListenerType type)
Convert PreComponentActionListenerType into the string.
ExecutionContextActionListenerType
The types of ExecutionContextActionListener.
PortActionListener class.
std::vector< Entry > m_listeners
coil::Guard< coil::Mutex > Guard
PostComponentActionListener class.
std::pair< PostComponentActionListener *, bool > Entry
std::vector< Entry > m_listeners
ExecutionContextActionListener class.