[詳解]
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);
701 #endif // RTC_PORTCONNECTLISTENER_H
virtual ~PortConnectRetListenerHolder()
デストラクタ
PortConnectListeners()
コンストラクタ
void removeListener(PortConnectRetListener *listener)
リスナーの削除
void removeListener(PortConnectListener *listener)
リスナーの削除
static const char * toString(PortConnectRetListenerType type)
PortConnectRetListenerType を文字列に変換
@ ON_UNSUBSCRIBE_INTERFACES
PortConnectListener ホルダクラス
Definition: PortConnectListener.h:277
void notify(const char *portname, RTC::ConnectorProfile &profile)
リスナーへ通知する
virtual ~PortConnectListener()
デストラクタ
static const char * toString(PortConnectListenerType type)
PortConnectListenerType を文字列に変換
~PortConnectListeners()
デストラクタ
PortConnectListeners クラス
Definition: PortConnectListener.h:486
virtual ~PortConnectRetListener()
デストラクタ
PortConnectRetListenerType
PortConnectRetListenerType のタイプ
Definition: PortConnectListener.h:162
void addListener(PortConnectListener *listener, bool autoclean)
リスナーの追加
bool notify(PortConnectListenerType type, const char *portname, RTC::ConnectorProfile &profile)
リスナーへ通知する
Definition: PortConnectListener.h:625
@ PORT_CONNECT_RET_LISTENER_NUM
PortConnectListenerHolder()
コンストラクタ
@ PORT_CONNECT_LISTENER_NUM
virtual ~PortConnectListenerHolder()
デストラクタ
virtual void operator()(const char *portname, RTC::ConnectorProfile &profile, ReturnCode_t ret)=0
仮想コールバック関数
PortConnectRetListener ホルダクラス
Definition: PortConnectListener.h:382
PortConnectListenerType
PortConnectListener のタイプ
Definition: PortConnectListener.h:50
virtual void operator()(const char *portname, RTC::ConnectorProfile &profile)=0
仮想コールバック関数
PortConnectRetListenerHolder()
コンストラクタ
PortConnectListener クラス
Definition: PortConnectListener.h:83
bool addListener(PortConnectListenerType type, PortConnectListener *listener, bool autoclean=true)
リスナーの追加
bool notify(PortConnectRetListenerType type, const char *portname, RTC::ConnectorProfile &profile, ReturnCode_t ret)
リスナーへ通知する
Definition: PortConnectListener.h:658
@ ON_SUBSCRIBE_INTERFACES
void addListener(PortConnectRetListener *listener, bool autoclean)
リスナーの追加
PortConnectRetListener クラス
Definition: PortConnectListener.h:203
bool removeListener(PortConnectListenerType type, PortConnectListener *listener)
リスナーの削除
void notify(const char *portname, RTC::ConnectorProfile &profile, ReturnCode_t ret)
リスナーへ通知する