OpenRTM
1.0.0
メインページ
ネームスペース
クラス
ファイル
ファイル一覧
ファイルメンバ
tmp
buildd
ros-hydro-openrtm-aist-1.1.0-13quantal-20150213-1351
src
lib
rtm
ConnectorBase.h
説明を見る。
1
// -*- C++ -*-
20
#ifndef RTC_CONNECTORBASE_H
21
#define RTC_CONNECTORBASE_H
22
23
#include <
coil/stringutil.h
>
24
#include <
coil/Properties.h
>
25
26
#include <
rtm/RTC.h
>
27
#include <
rtm/CdrBufferBase.h
>
28
#include <
rtm/DataPortStatus.h
>
29
#include <
rtm/SystemLogger.h
>
30
31
namespace
RTC
32
{
43
class
ConnectorInfo
44
{
45
public
:
71
ConnectorInfo
(
const
char
* name_,
const
char
* id_,
72
coil::vstring
ports_,
coil::Properties
properties_)
73
:
name
(name_),
id
(id_)
74
,
ports
(ports_),
properties
(properties_)
75
{
76
}
92
ConnectorInfo
()
93
{
94
}
102
std::string
name
;
110
std::string
id
;
118
coil::vstring
ports
;
126
coil::Properties
properties
;
127
};
128
129
typedef
std::vector<ConnectorInfo>
ConnectorInfoList
;
130
131
class
ConnectorBase
;
132
typedef
std::vector<ConnectorBase*>
ConnectorList
;
133
134
156
class
ConnectorBase
157
:
public
DataPortStatus
158
{
159
public
:
160
DATAPORTSTATUS_ENUM
161
191
virtual
~ConnectorBase
(){};
192
206
virtual
const
ConnectorInfo
&
profile
() = 0;
207
221
virtual
const
char
*
id
() = 0;
222
236
virtual
const
char
*
name
() = 0;
237
251
virtual
ReturnCode
disconnect
() = 0;
252
266
virtual
CdrBufferBase
*
getBuffer
() = 0;
267
282
virtual
void
activate
() = 0;
283
298
virtual
void
deactivate
() = 0;
299
300
private
:
301
// non-copyable class
302
// ConnectorBase(const ConnectorBase& x);
303
// ConnectorBase& operator=(const ConnectorBase& x);
304
};
305
};
// namespace RTC
306
307
#endif // RTC_CONNECTORBASE_H
OpenRTMに対してFri Feb 13 2015 13:58:06に生成されました。
1.8.1.2