ConnectorBase.h
Go to the documentation of this file.
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 {
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  }
93  {
94  }
102  std::string name;
110  std::string id;
127  };
128 
129  typedef std::vector<ConnectorInfo> ConnectorInfoList;
130 
132  typedef std::vector<ConnectorBase*> ConnectorList;
133 
134 
157  : public DataPortStatus
158  {
159  public:
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
#define DATAPORTSTATUS_ENUM
Importing RTC::DataPortStatus macro.
DataPortStatus class.
coil::Properties properties
Connection properties.
RT-Component.
RT component logger class.
Connector Base class.
coil::vstring ports
Connection ports.
ConnectorInfo()
Constructor.
Definition: ConnectorBase.h:92
std::vector< ConnectorInfo > ConnectorInfoList
Enum
DataPortStatus return codes.
Definition: BufferStatus.h:84
std::vector< std::string > vstring
Definition: stringutil.h:37
virtual ~ConnectorBase()
Destructor.
std::string name
Connection name.
Class represents a set of properties.
Definition: Properties.h:101
RTComponent header.
std::vector< ConnectorBase * > ConnectorList
ConnectorInfo(const char *name_, const char *id_, coil::vstring ports_, coil::Properties properties_)
Constructor.
Definition: ConnectorBase.h:71
DataPortStatus mixin class.
BufferBase abstract class.
Definition: BufferBase.h:104
std::string id
ConnectionID.


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Feb 28 2022 23:00:42