[詳解]
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;
679 std::vector<Entry> m_listeners;
702 typedef std::pair<PostComponentActionListener*, bool> Entry;
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;
1000 std::vector<Entry> m_listeners;
1070 #endif // RTC_COMPONENTACTIONLISTENER_H
PostComponentActionListenerHolder()
コンストラクタ
@ PRE_ON_STARTUP
Definition: ComponentActionListener.h:61
@ PRE_ON_SHUTDOWN
Definition: ComponentActionListener.h:62
PostComponentActionListener ホルダクラス
Definition: ComponentActionListener.h:700
@ POST_ON_FINALIZE
Definition: ComponentActionListener.h:222
@ PRE_ON_INITIALIZE
Definition: ComponentActionListener.h:59
@ POST_ON_ACTIVATED
Definition: ComponentActionListener.h:225
virtual void operator()(UniqueId ec_id, ReturnCode_t ret)=0
仮想コールバック関数
void addListener(ExecutionContextActionListener *listener, bool autoclean)
リスナーの追加
@ EC_ATTACHED
Definition: ComponentActionListener.h:485
virtual ~PreComponentActionListener()
デストラクタ
PreComponentActionListenerType
PreComponentActionListener のタイプ
Definition: ComponentActionListener.h:57
Mutex クラス
Definition: Mutex.h:40
@ POST_ON_ABORTING
Definition: ComponentActionListener.h:227
void notify(UniqueId ec_id)
リスナーへ通知する
virtual ~PortActionListener()
デストラクタ
ExecutionContextActionListenerHolder()
コンストラクタ
ExecutionContextActionListenerHolder ecaction_[EC_ACTION_LISTENER_NUM]
ExecutionContextActionTypeリスナ配列 ExecutionContextActionTypeリスナを格納
Definition: ComponentActionListener.h:1064
@ POST_ON_SHUTDOWN
Definition: ComponentActionListener.h:224
void notify(UniqueId ec_id, ReturnCode_t ret)
リスナーへ通知する
virtual ~PostComponentActionListener()
デストラクタ
@ EC_DETACHED
Definition: ComponentActionListener.h:486
@ PORT_ACTION_LISTENER_NUM
Definition: ComponentActionListener.h:380
@ PRE_ON_STATE_UPDATE
Definition: ComponentActionListener.h:69
void removeListener(PostComponentActionListener *listener)
リスナーの削除
void notify(UniqueId ec_id)
リスナーへ通知する
@ PRE_ON_RESET
Definition: ComponentActionListener.h:67
@ POST_ON_RATE_CHANGED
Definition: ComponentActionListener.h:232
PreComponentActionListener クラス
Definition: ComponentActionListener.h:120
PortActionListener ホルダクラス
Definition: ComponentActionListener.h:808
PortActionListener クラス
Definition: ComponentActionListener.h:403
@ POST_ON_STATE_UPDATE
Definition: ComponentActionListener.h:231
@ POST_ON_INITIALIZE
Definition: ComponentActionListener.h:221
static const char * toString(ExecutionContextActionListenerType type)
PreComponentActionListenerType を文字列に変換
Definition: ComponentActionListener.h:536
@ POST_COMPONENT_ACTION_LISTENER_NUM
Definition: ComponentActionListener.h:233
@ PRE_COMPONENT_ACTION_LISTENER_NUM
Definition: ComponentActionListener.h:71
virtual void operator()(UniqueId ec_id)=0
仮想コールバック関数
static const char * toString(PortActionListenerType type)
PreComponentActionListenerType を文字列に変換
Definition: ComponentActionListener.h:429
ExecutionContextActionListener クラス
Definition: ComponentActionListener.h:510
virtual ~PostComponentActionListenerHolder()
デストラクタ
@ POST_ON_RESET
Definition: ComponentActionListener.h:229
@ EC_ACTION_LISTENER_NUM
Definition: ComponentActionListener.h:487
@ POST_ON_EXECUTE
Definition: ComponentActionListener.h:230
static const char * toString(PreComponentActionListenerType type)
PreComponentActionListenerType を文字列に変換
Definition: ComponentActionListener.h:146
virtual ~ExecutionContextActionListenerHolder()
デストラクタ
void addListener(PreComponentActionListener *listener, bool autoclean)
リスナーの追加
@ ADD_PORT
Definition: ComponentActionListener.h:378
@ PRE_ON_RATE_CHANGED
Definition: ComponentActionListener.h:70
PortActionListenerHolder portaction_[PORT_ACTION_LISTENER_NUM]
PortActionTypeリスナ配列 PortActionTypeリスナを格納
Definition: ComponentActionListener.h:1053
virtual void operator()(const ::RTC::PortProfile &pprof)=0
仮想コールバック関数
void addListener(PostComponentActionListener *listener, bool autoclean)
リスナーの追加
void notify(const RTC::PortProfile &pprofile)
リスナーへ通知する
ComponentActionListeners クラス
Definition: ComponentActionListener.h:1018
PreComponentActionListenerHolder()
コンストラクタ
@ PRE_ON_ERROR
Definition: ComponentActionListener.h:66
@ PRE_ON_FINALIZE
Definition: ComponentActionListener.h:60
PostComponentActionListenerHolder postaction_[POST_COMPONENT_ACTION_LISTENER_NUM]
PostComponentActionTypeリスナ配列 PostComponentActionTypeリスナを格納
Definition: ComponentActionListener.h:1042
@ PRE_ON_EXECUTE
Definition: ComponentActionListener.h:68
PreComponentActionListenerHolder preaction_[PRE_COMPONENT_ACTION_LISTENER_NUM]
PreComponentActionListenerTypeリスナ配列 PreComponentActionListenerTypeリスナを格納
Definition: ComponentActionListener.h:1031
virtual ~PortActionListenerHolder()
デストラクタ
@ PRE_ON_DEACTIVATED
Definition: ComponentActionListener.h:64
void removeListener(PreComponentActionListener *listener)
リスナーの削除
@ POST_ON_STARTUP
Definition: ComponentActionListener.h:223
PreComponentActionListener ホルダクラス
Definition: ComponentActionListener.h:594
ExecutionContextHandle_t UniqueId
Definition: ComponentActionListener.h:32
void addListener(PortActionListener *listener, bool autoclean)
リスナーの追加
PostComponentActionListenerType
PostCompoenntActionListener のタイプ
Definition: ComponentActionListener.h:219
virtual void operator()(UniqueId ec_id)=0
仮想コールバック関数
@ POST_ON_DEACTIVATED
Definition: ComponentActionListener.h:226
PortActionListenerType
PortActionListener のタイプ
Definition: ComponentActionListener.h:376
void removeListener(PortActionListener *listener)
リスナーの削除
static const char * toString(PostComponentActionListenerType type)
PostComponentActionListenerType を文字列に変換
Definition: ComponentActionListener.h:309
@ POST_ON_ERROR
Definition: ComponentActionListener.h:228
@ PRE_ON_ACTIVATED
Definition: ComponentActionListener.h:63
PostComponentActionListener クラス
Definition: ComponentActionListener.h:283
PortActionListenerHolder()
コンストラクタ
virtual ~ExecutionContextActionListener()
デストラクタ
@ PRE_ON_ABORTING
Definition: ComponentActionListener.h:65
virtual ~PreComponentActionListenerHolder()
デストラクタ
@ REMOVE_PORT
Definition: ComponentActionListener.h:379
ExecutionContextActionListener ホルダクラス
Definition: ComponentActionListener.h:914
ExecutionContextActionListenerType
ExecutionContextActionListener のタイプ
Definition: ComponentActionListener.h:483
void removeListener(ExecutionContextActionListener *listener)
リスナーの削除