#include <InPortBase.h>
Public メソッド | |
InPortBase (const char *name, const char *data_type) | |
コンストラクタ | |
virtual | ~InPortBase (void) |
デストラクタ | |
coil::Properties & | properties () |
void | init () |
virtual void | activateInterfaces () |
InPortを activates する | |
virtual void | deactivateInterfaces () |
全ての Port のインターフェースを deactivates する | |
Public 変数 | |
DATAPORTSTATUS_ENUM typedef std::vector < InPortConnector * > | ConnectorList |
Protected メソッド | |
virtual ReturnCode_t | publishInterfaces (ConnectorProfile &connector_profile) |
Interface情報を公開する | |
virtual ReturnCode_t | subscribeInterfaces (const ConnectorProfile &connector_profile) |
Interfaceに接続する | |
virtual void | unsubscribeInterfaces (const ConnectorProfile &connector_profile) |
Interfaceへの接続を解除する | |
void | initProviders () |
InPort provider の初期化 | |
void | initConsumers () |
OutPort consumer の初期化 | |
InPortProvider * | createProvider (ConnectorProfile &cprof, coil::Properties &prop) |
InPort provider の生成 | |
OutPortConsumer * | createConsumer (const ConnectorProfile &cprof, coil::Properties &prop) |
OutPort consumer の生成 | |
InPortConnector * | createConnector (ConnectorProfile &cprof, coil::Properties &prop, InPortProvider *provider) |
InPortPushConnector の生成 | |
InPortConnector * | createConnector (const ConnectorProfile &cprof, coil::Properties &prop, OutPortConsumer *consumer) |
InPortPullConnector の生成 | |
Protected 変数 | |
bool | m_singlebuffer |
CdrBufferBase * | m_thebuffer |
coil::Properties | m_properties |
coil::vstring | m_providerTypes |
coil::vstring | m_consumerTypes |
ConnectorList | m_connectors |
データ入力ポートの実装クラス。
RTC::InPortBase::InPortBase | ( | const char * | name, | |
const char * | data_type | |||
) |
コンストラクタ
コンストラクタ
name | ポート名称 | |
inport | 当該データ入力ポートに関連付けるInPortオブジェクト InPortオブジェクトで扱うデータ型、バッファタイプも指定する | |
prop | ポート設定用プロパティ |
virtual RTC::InPortBase::~InPortBase | ( | void | ) | [virtual] |
デストラクタ
デストラクタ
coil::Properties& RTC::InPortBase::properties | ( | ) |
void RTC::InPortBase::init | ( | ) |
virtual void RTC::InPortBase::activateInterfaces | ( | ) | [virtual] |
virtual void RTC::InPortBase::deactivateInterfaces | ( | ) | [virtual] |
virtual ReturnCode_t RTC::InPortBase::publishInterfaces | ( | ConnectorProfile & | connector_profile | ) | [protected, virtual] |
Interface情報を公開する
Interface情報を公開する。 引数の ConnectorProfile に格納されている dataflow_type が push 型 の場合は、指定された interface_type の InPortProvider に関する情報 を ConnectorProfile::properties に書込み呼び出し側に戻す。
dataport.dataflow_type
connector_profile | コネクタプロファイル |
RTC::PortBaseを実装しています。
virtual ReturnCode_t RTC::InPortBase::subscribeInterfaces | ( | const ConnectorProfile & | connector_profile | ) | [protected, virtual] |
Interfaceに接続する
Interfaceに接続する。 Portが所有するConsumerに適合するProviderに関する情報を ConnectorProfile::properties から抽出し、 ConsumerにCORBAオブジェクト参照を設定する。
connector_profile | コネクタ・プロファイル |
RTC::PortBaseを実装しています。
virtual void RTC::InPortBase::unsubscribeInterfaces | ( | const ConnectorProfile & | connector_profile | ) | [protected, virtual] |
Interfaceへの接続を解除する
Interfaceへの接続を解除する。 与えられたConnectorProfileに関連するConsumerに設定された全てのObjectを 解放し接続を解除する。
connector_profile | コネクタ・プロファイル |
RTC::PortBaseを実装しています。
void RTC::InPortBase::initProviders | ( | ) | [protected] |
InPort provider の初期化
void RTC::InPortBase::initConsumers | ( | ) | [protected] |
OutPort consumer の初期化
InPortProvider* RTC::InPortBase::createProvider | ( | ConnectorProfile & | cprof, | |
coil::Properties & | prop | |||
) | [protected] |
InPort provider の生成
InPortProvider を生成し、情報を ConnectorProfile に公開する。 生成に失敗した場合 0 を返す。
OutPortConsumer* RTC::InPortBase::createConsumer | ( | const ConnectorProfile & | cprof, | |
coil::Properties & | prop | |||
) | [protected] |
OutPort consumer の生成
OutPortConsumer を生成する。 生成に失敗した場合 0 を返す。
InPortConnector* RTC::InPortBase::createConnector | ( | ConnectorProfile & | cprof, | |
coil::Properties & | prop, | |||
InPortProvider * | provider | |||
) | [protected] |
Connector を生成し、生成が成功すれば m_connectors に保存する。 生成に失敗した場合 0 を返す。
InPortConnector* RTC::InPortBase::createConnector | ( | const ConnectorProfile & | cprof, | |
coil::Properties & | prop, | |||
OutPortConsumer * | consumer | |||
) | [protected] |
Connector を生成し、生成が成功すれば m_connectors に保存する。 生成に失敗した場合 0 を返す。
DATAPORTSTATUS_ENUM typedef std::vector<InPortConnector*> RTC::InPortBase::ConnectorList |
bool RTC::InPortBase::m_singlebuffer [protected] |
CdrBufferBase* RTC::InPortBase::m_thebuffer [protected] |
coil::Properties RTC::InPortBase::m_properties [protected] |
coil::vstring RTC::InPortBase::m_providerTypes [protected] |
coil::vstring RTC::InPortBase::m_consumerTypes [protected] |
ConnectorList RTC::InPortBase::m_connectors [protected] |