OpenRTM-aist 2.0.2
読み取り中…
検索中…
一致する文字列を見つけられません
RTC::PortConnectListeners クラス

PortConnectListeners クラス [詳解]

#include <PortConnectListener.h>

公開メンバ関数

 PortConnectListeners ()
 コンストラクタ
 
 ~PortConnectListeners ()
 デストラクタ
 
bool addListener (PortConnectListenerType type, PortConnectListener *listener, bool autoclean=true)
 リスナーの追加
 
bool removeListener (PortConnectListenerType type, PortConnectListener *listener)
 リスナーの削除
 
bool addListener (PortConnectRetListenerType type, PortConnectRetListener *listener, bool autoclean=true)
 リスナーの追加
 
bool removeListener (PortConnectRetListenerType type, PortConnectRetListener *listener)
 リスナーの削除
 
bool notify (PortConnectListenerType type, const char *portname, RTC::ConnectorProfile &profile)
 リスナーへ通知する
 
bool notify (PortConnectRetListenerType type, const char *portname, RTC::ConnectorProfile &profile, ReturnCode_t ret)
 リスナーへ通知する
 

詳解

構築子と解体子

◆ PortConnectListeners()

RTC::PortConnectListeners::PortConnectListeners ( )

コンストラクタ

◆ ~PortConnectListeners()

RTC::PortConnectListeners::~PortConnectListeners ( )

デストラクタ

関数詳解

◆ addListener() [1/2]

bool RTC::PortConnectListeners::addListener ( PortConnectListenerType type,
PortConnectListener * listener,
bool autoclean = true )

リスナーの追加

指定の種類のPortConnectListenerを追加する。

引数
typeリスナの種類
listener追加するリスナ
autocleantrue:デストラクタで削除する, false:デストラクタで削除しない
戻り値
false:指定の種類のリスナが存在しない

◆ addListener() [2/2]

bool RTC::PortConnectListeners::addListener ( PortConnectRetListenerType type,
PortConnectRetListener * listener,
bool autoclean = true )

リスナーの追加

指定の種類のPortConnectRetListenerを追加する。

引数
typeリスナの種類
listener追加するリスナ
autocleantrue:デストラクタで削除する, false:デストラクタで削除しない
戻り値
false:指定の種類のリスナが存在しない

◆ notify() [1/2]

bool RTC::PortConnectListeners::notify ( PortConnectListenerType type,
const char * portname,
RTC::ConnectorProfile & profile )
inline

リスナーへ通知する

指定の種類のPortConnectListenerのコールバック関数を呼び出す。

引数
typeリスナの種類
portnameポート名
profileコネクタプロファイル
戻り値
false:指定の種類のリスナが存在しない

参照先 notify().

参照元 notify(), notify(), RTC::PortBase::onConnected(), RTC::PortBase::onConnectNextport(), RTC::PortBase::onDisconnected(), RTC::PortBase::onDisconnectNextport(), RTC::PortBase::onNotifyConnect(), RTC::PortBase::onNotifyDisconnect(), RTC::PortBase::onPublishInterfaces(), RTC::PortBase::onSubscribeInterfaces(), RTC::PortBase::onUnsubscribeInterfaces().

◆ notify() [2/2]

bool RTC::PortConnectListeners::notify ( PortConnectRetListenerType type,
const char * portname,
RTC::ConnectorProfile & profile,
ReturnCode_t ret )
inline

リスナーへ通知する

指定の種類のPortConnectRetListenerのコールバック関数を呼び出す。

引数
typeリスナの種類
portnameポート名
profileコネクタプロファイル
retリターンコード
戻り値
false:指定の種類のリスナが存在しない

参照先 notify().

◆ removeListener() [1/2]

bool RTC::PortConnectListeners::removeListener ( PortConnectListenerType type,
PortConnectListener * listener )

リスナーの削除

指定の種類のPortConnectListenerを削除する。

引数
typeリスナの種類
listener削除するリスナ
戻り値
false:指定の種類のリスナが存在しない

◆ removeListener() [2/2]

bool RTC::PortConnectListeners::removeListener ( PortConnectRetListenerType type,
PortConnectRetListener * listener )

リスナーの削除

指定の種類のPortConnectRetListenerを削除する。

引数
typeリスナの種類
listener削除するリスナ
戻り値
false:指定の種類のリスナが存在しない

このクラス詳解は次のファイルから抽出されました: