クラス RTC::PublisherFlush
PublisherFlush クラス
[詳細]
#include <PublisherFlush.h>
すべてのメンバ一覧
説明
PublisherFlush クラス
Flush 型 Publisher クラス バッファ内に格納されている未送信データを送信する。 データ送出を待つコンシューマを、送出する側と同じスレッドで動作させる。
型定義
コンストラクタとデストラクタ
DATAPORTSTATUS_ENUM RTC::PublisherFlush::PublisherFlush |
( |
|
) |
|
コンストラクタ
コンストラクタ
- 引数:
-
| consumer | データ送出を待つコンシューマ |
| property | 本Publisherの駆動制御情報を設定したPropertyオブジェクト |
virtual RTC::PublisherFlush::~PublisherFlush |
( |
void |
|
) |
[virtual] |
デストラクタ
デストラクタ 当該Publisherを破棄する際に、PublisherFactoryにより呼び出される。
関数
virtual ReturnCode RTC::PublisherFlush::init |
( |
coil::Properties & |
prop |
) |
[virtual] |
virtual ReturnCode RTC::PublisherFlush::setConsumer |
( |
InPortConsumer * |
consumer |
) |
[virtual] |
virtual ReturnCode RTC::PublisherFlush::setBuffer |
( |
CdrBufferBase * |
buffer |
) |
[virtual] |
バッファのセット
PublisherFlushでは、バッファを使用しないため、 本メソッドはPORT_ERRORを返す。
- 引数:
-
- 戻り値:
- PORT_ERROR
virtual ReturnCode RTC::PublisherFlush::write |
( |
const cdrMemoryStream & |
data, |
|
|
unsigned long |
sec, |
|
|
unsigned long |
usec | |
|
) |
| | [virtual] |
データを書き込む
- 引数:
-
| data | 書き込むデータ |
| sec | タイムアウト時間 |
| nsec | タイムアウト時間 |
- 戻り値:
- リターンコード
RTC::PublisherBaseを実装しています。
virtual bool RTC::PublisherFlush::isActive |
( |
|
) |
[virtual] |
アクティブ化確認
アクティブ化されているか確認する。
- 戻り値:
- 状態確認結果(アクティブ状態:true、非アクティブ状態:false)
RTC::PublisherBaseを実装しています。
virtual ReturnCode RTC::PublisherFlush::activate |
( |
|
) |
[virtual] |
virtual ReturnCode RTC::PublisherFlush::deactivate |
( |
|
) |
[virtual] |
void RTC::PublisherFlush::onSend |
( |
const cdrMemoryStream & |
data |
) |
[inline, protected] |
Connector data listener functions
ON_SENDのリスナへ通知する。
- 引数:
-
参照先 RTC::ON_SEND.
void RTC::PublisherFlush::onReceived |
( |
const cdrMemoryStream & |
data |
) |
[inline, protected] |
void RTC::PublisherFlush::onReceiverFull |
( |
const cdrMemoryStream & |
data |
) |
[inline, protected] |
void RTC::PublisherFlush::onReceiverTimeout |
( |
const cdrMemoryStream & |
data |
) |
[inline, protected] |
void RTC::PublisherFlush::onReceiverError |
( |
const cdrMemoryStream & |
data |
) |
[inline, protected] |