19 #ifndef RTC_PORTCONNECTLISTENER_H
20 #define RTC_PORTCONNECTLISTENER_H
24 #include <rtm/idl/RTCSkel.h>
136 RTC::ConnectorProfile& profile) = 0;
256 RTC::ConnectorProfile& profile,
257 ReturnCode_t ret) = 0;
279 using Entry = std::pair<PortConnectListener*, bool>;
358 void notify(
const char* portname, RTC::ConnectorProfile& profile);
361 std::vector<Entry> m_listeners;
384 using Entry = std::pair<PortConnectRetListener*, bool>;
465 void notify(
const char* portname, RTC::ConnectorProfile& profile,
469 std::vector<Entry> m_listeners;
627 if (
static_cast<uint8_t
>(type) < portconnect_.size())
629 portconnect_[
static_cast<uint8_t
>(type)].
notify(portname, profile);
661 if (
static_cast<uint8_t
>(type) < portconnret_.size())
663 portconnret_[
static_cast<uint8_t
>(type)].
notify(portname, profile, ret);
PortConnectListener ホルダクラス
Definition: PortConnectListener.h:278
PortConnectListenerHolder()
コンストラクタ
void notify(const char *portname, RTC::ConnectorProfile &profile)
リスナーへ通知する
void removeListener(PortConnectListener *listener)
リスナーの削除
virtual ~PortConnectListenerHolder()
デストラクタ
void addListener(PortConnectListener *listener, bool autoclean)
リスナーの追加
PortConnectListener クラス
Definition: PortConnectListener.h:84
virtual ~PortConnectListener()
デストラクタ
virtual void operator()(const char *portname, RTC::ConnectorProfile &profile)=0
仮想コールバック関数
static const char * toString(PortConnectListenerType type)
PortConnectListenerType を文字列に変換
PortConnectListeners クラス
Definition: PortConnectListener.h:487
~PortConnectListeners()
デストラクタ
bool removeListener(PortConnectListenerType type, PortConnectListener *listener)
リスナーの削除
PortConnectListeners()
コンストラクタ
bool removeListener(PortConnectRetListenerType type, PortConnectRetListener *listener)
リスナーの削除
bool notify(PortConnectListenerType type, const char *portname, RTC::ConnectorProfile &profile)
リスナーへ通知する
Definition: PortConnectListener.h:625
bool notify(PortConnectRetListenerType type, const char *portname, RTC::ConnectorProfile &profile, ReturnCode_t ret)
リスナーへ通知する
Definition: PortConnectListener.h:658
bool addListener(PortConnectRetListenerType type, PortConnectRetListener *listener, bool autoclean=true)
リスナーの追加
bool addListener(PortConnectListenerType type, PortConnectListener *listener, bool autoclean=true)
リスナーの追加
PortConnectRetListener ホルダクラス
Definition: PortConnectListener.h:383
void notify(const char *portname, RTC::ConnectorProfile &profile, ReturnCode_t ret)
リスナーへ通知する
void addListener(PortConnectRetListener *listener, bool autoclean)
リスナーの追加
virtual ~PortConnectRetListenerHolder()
デストラクタ
void removeListener(PortConnectRetListener *listener)
リスナーの削除
PortConnectRetListenerHolder()
コンストラクタ
PortConnectRetListener クラス
Definition: PortConnectListener.h:204
virtual ~PortConnectRetListener()
デストラクタ
virtual void operator()(const char *portname, RTC::ConnectorProfile &profile, ReturnCode_t ret)=0
仮想コールバック関数
static const char * toString(PortConnectRetListenerType type)
PortConnectRetListenerType を文字列に変換
PortConnectListenerType
PortConnectListener のタイプ
Definition: PortConnectListener.h:51
@ ON_UNSUBSCRIBE_INTERFACES
@ PORT_CONNECT_LISTENER_NUM
PortConnectRetListenerType
PortConnectRetListenerType のタイプ
Definition: PortConnectListener.h:163
@ ON_SUBSCRIBE_INTERFACES
@ PORT_CONNECT_RET_LISTENER_NUM