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
仮想コールバック関数
Definition: ComponentActionListener.h:486
Definition: ComponentActionListener.h:228
Definition: ComponentActionListener.h:59
Definition: ComponentActionListener.h:227
static const char * toString(PortActionListenerType type)
PreComponentActionListenerType を文字列に変換
Definition: ComponentActionListener.h:429
PreComponentActionListener ホルダクラス
Definition: ComponentActionListener.h:594
void addListener(PreComponentActionListener *listener, bool autoclean)
リスナーの追加
Definition: ComponentActionListener.h:485
Definition: ComponentActionListener.h:64
PostComponentActionListenerType
PostCompoenntActionListener のタイプ
Definition: ComponentActionListener.h:219
virtual ~PostComponentActionListener()
デストラクタ
ExecutionContextActionListener ホルダクラス
Definition: ComponentActionListener.h:914
PortActionListener ホルダクラス
Definition: ComponentActionListener.h:808
Definition: ComponentActionListener.h:61
Definition: ComponentActionListener.h:233
Mutex クラス
Definition: Mutex.h:40
PostComponentActionListenerHolder postaction_[POST_COMPONENT_ACTION_LISTENER_NUM]
PostComponentActionTypeリスナ配列 PostComponentActionTypeリスナを格納
Definition: ComponentActionListener.h:1042
Definition: ComponentActionListener.h:487
virtual ~PortActionListener()
デストラクタ
Definition: ComponentActionListener.h:67
Definition: ComponentActionListener.h:71
virtual ~PortActionListenerHolder()
デストラクタ
PortActionListenerType
PortActionListener のタイプ
Definition: ComponentActionListener.h:376
Definition: ComponentActionListener.h:226
void removeListener(PreComponentActionListener *listener)
リスナーの削除
static const char * toString(ExecutionContextActionListenerType type)
PreComponentActionListenerType を文字列に変換
Definition: ComponentActionListener.h:536
Definition: ComponentActionListener.h:380
PreComponentActionListenerType
PreComponentActionListener のタイプ
Definition: ComponentActionListener.h:57
Definition: ComponentActionListener.h:62
ExecutionContextActionListenerHolder ecaction_[EC_ACTION_LISTENER_NUM]
ExecutionContextActionTypeリスナ配列 ExecutionContextActionTypeリスナを格納
Definition: ComponentActionListener.h:1064
Definition: ComponentActionListener.h:68
void notify(const RTC::PortProfile &pprofile)
リスナーへ通知する
PreComponentActionListener クラス
Definition: ComponentActionListener.h:120
Definition: ComponentActionListener.h:379
void removeListener(PostComponentActionListener *listener)
リスナーの削除
Definition: ComponentActionListener.h:231
void notify(UniqueId ec_id, ReturnCode_t ret)
リスナーへ通知する
virtual void operator()(UniqueId ec_id, ReturnCode_t ret)=0
仮想コールバック関数
Definition: ComponentActionListener.h:66
Definition: ComponentActionListener.h:69
virtual ~PreComponentActionListenerHolder()
デストラクタ
PortActionListenerHolder()
コンストラクタ
PortActionListenerHolder portaction_[PORT_ACTION_LISTENER_NUM]
PortActionTypeリスナ配列 PortActionTypeリスナを格納
Definition: ComponentActionListener.h:1053
ExecutionContextHandle_t UniqueId
Definition: ComponentActionListener.h:32
Definition: ComponentActionListener.h:229
static const char * toString(PostComponentActionListenerType type)
PostComponentActionListenerType を文字列に変換
Definition: ComponentActionListener.h:309
Definition: ComponentActionListener.h:221
ComponentActionListeners クラス
Definition: ComponentActionListener.h:1018
Definition: ComponentActionListener.h:378
void addListener(PostComponentActionListener *listener, bool autoclean)
リスナーの追加
void removeListener(PortActionListener *listener)
リスナーの削除
virtual void operator()(UniqueId ec_id)=0
仮想コールバック関数
void notify(UniqueId ec_id)
リスナーへ通知する
Definition: ComponentActionListener.h:222
ExecutionContextActionListenerHolder()
コンストラクタ
void removeListener(ExecutionContextActionListener *listener)
リスナーの削除
PostComponentActionListenerHolder()
コンストラクタ
virtual ~ExecutionContextActionListenerHolder()
デストラクタ
Definition: ComponentActionListener.h:70
PostComponentActionListener ホルダクラス
Definition: ComponentActionListener.h:700
virtual void operator()(const ::RTC::PortProfile &pprof)=0
仮想コールバック関数
static const char * toString(PreComponentActionListenerType type)
PreComponentActionListenerType を文字列に変換
Definition: ComponentActionListener.h:146
void addListener(ExecutionContextActionListener *listener, bool autoclean)
リスナーの追加
PreComponentActionListenerHolder preaction_[PRE_COMPONENT_ACTION_LISTENER_NUM]
PreComponentActionListenerTypeリスナ配列 PreComponentActionListenerTypeリスナを格納 ...
Definition: ComponentActionListener.h:1031
Definition: ComponentActionListener.h:225
Definition: ComponentActionListener.h:223
Definition: ComponentActionListener.h:65
Definition: ComponentActionListener.h:224
ExecutionContextActionListenerType
ExecutionContextActionListener のタイプ
Definition: ComponentActionListener.h:483
PreComponentActionListenerHolder()
コンストラクタ
virtual ~PostComponentActionListenerHolder()
デストラクタ
Definition: ComponentActionListener.h:230
PortActionListener クラス
Definition: ComponentActionListener.h:403
virtual ~ExecutionContextActionListener()
デストラクタ
virtual ~PreComponentActionListener()
デストラクタ
Definition: ComponentActionListener.h:60
Definition: ComponentActionListener.h:63
void addListener(PortActionListener *listener, bool autoclean)
リスナーの追加
PostComponentActionListener クラス
Definition: ComponentActionListener.h:283
Definition: ComponentActionListener.h:232
void notify(UniqueId ec_id)
リスナーへ通知する
ExecutionContextActionListener クラス
Definition: ComponentActionListener.h:510