19 #ifndef RTC_PORTCONNECTLISTENER_H 20 #define RTC_PORTCONNECTLISTENER_H 24 #include <rtm/idl/RTCSkel.h> 135 virtual void operator()(
const char* portname,
136 RTC::ConnectorProfile& profile) = 0;
255 virtual void operator()(
const char* portname,
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 PortConnectRetListener class.
Definition: PortConnectListener.h:203
PortConnectRetListenerType
The types of PortConnectRetListenerType.
Definition: PortConnectListener.h:162
PortConnectListenerType
The types of ConnectorDataListener.
Definition: PortConnectListener.h:50
char const * toString(BufferStatus status)
Convert BufferStatus into the string.
Definition: BufferStatus.h:90
PortConnectListener class.
Definition: PortConnectListener.h:83
PortConnectListener holder class.
Definition: PortConnectListener.h:277
PortConnectListeners class.
Definition: PortConnectListener.h:486
PortConnectRetListener holder class.
Definition: PortConnectListener.h:382
bool notify(PortConnectRetListenerType type, const char *portname, RTC::ConnectorProfile &profile, ReturnCode_t ret)
Definition: PortConnectListener.h:658
bool notify(PortConnectListenerType type, const char *portname, RTC::ConnectorProfile &profile)
Definition: PortConnectListener.h:625