OutPortPullConnector.h
Go to the documentation of this file.
1 // -*- C++ -*-
20 #ifndef RTC_OUTPORTPULLCONNECTOR_H
21 #define RTC_OUTPORTPULLCONNECTOR_H
22 
23 #include <rtm/OutPortConnector.h>
24 #include <rtm/ConnectorListener.h>
25 
26 namespace RTC
27 {
28  class OutPortProvider;
29 
82  : public OutPortConnector
83  {
84  public:
86 
129  ConnectorListeners& listeners,
130  CdrBufferBase* buffer = 0);
131 
147  virtual ~OutPortPullConnector();
148 
165  virtual ReturnCode write(const cdrMemoryStream& data);
166 
182  virtual ReturnCode disconnect();
183 
197  virtual CdrBufferBase* getBuffer();
198 
213  virtual void activate(){}; // do nothing
214 
229  virtual void deactivate(){}; // do nothing
230 
239 
247  void onConnect();
248 
256  void onDisconnect();
257 
258  protected:
259 
268 
277 
286  };
287 }; // namespace RTC
288 
289 #endif // RTC_PULL_CONNECTOR_H
ConnectorListeners class.
#define DATAPORTSTATUS_ENUM
Importing RTC::DataPortStatus macro.
RT-Component.
ConnectorListeners & m_listeners
A reference to a ConnectorListener.
OutPortConnector class.
CdrBufferBase * m_buffer
the pointer to the buffer
CdrBufferBase * createBuffer(ConnectorInfo &info)
create buffer
virtual ReturnCode disconnect()
disconnect
Enum
DataPortStatus return codes.
Definition: BufferStatus.h:84
virtual ~OutPortPullConnector()
Destructor.
virtual void deactivate()
Connector deactivation.
OutPortProvider * m_provider
the pointer to the OutPortProvider
virtual CdrBufferBase * getBuffer()
Getting Buffer.
DATAPORTSTATUS_ENUM OutPortPullConnector(ConnectorInfo info, OutPortProvider *provider, ConnectorListeners &listeners, CdrBufferBase *buffer=0)
Constructor.
void onDisconnect()
Invoke callback when connection is destroied.
BufferBase abstract class.
Definition: BufferBase.h:104
virtual ReturnCode write(const cdrMemoryStream &data)
Writing data.
connector listener class
void onConnect()
Invoke callback when connection is established.
virtual void activate()
Connector activation.


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Jun 6 2019 19:25:59