InPortPushConnector.h
Go to the documentation of this file.
1 // -*- C++ -*-
20 #ifndef RTC_INPORTPUSHCONNECTOR_H
21 #define RTC_INPORTPUSHCONNECTOR_H
22 
23 #include <rtm/InPortConnector.h>
24 #include <rtm/InPortConsumer.h>
25 #include <rtm/PublisherBase.h>
26 
27 namespace RTC
28 {
29  class InPortProvider;
30 
81  : public InPortConnector
82  {
83  public:
85 
128  ConnectorListeners& listeners,
129  CdrBufferBase* buffer = 0);
130 
146  virtual ~InPortPushConnector();
147 
180  virtual ReturnCode read(cdrMemoryStream& data);
181 
201  virtual ReturnCode disconnect();
202 
217  virtual void activate(){}; // do nothing
218 
233  virtual void deactivate(){}; // do nothing
234 
235  protected:
255  virtual CdrBufferBase* createBuffer(ConnectorInfo& info);
256 
264  void onConnect();
265 
273  void onDisconnect();
274 
275  private:
284 
293 
295  };
296 }; // namespace RTC
297 
298 #endif // RTC_PUSH_CONNECTOR_H
ConnectorListeners class.
ConnectorListeners & m_listeners
A reference to a ConnectorListener.
#define DATAPORTSTATUS_ENUM
Importing RTC::DataPortStatus macro.
RT-Component.
void onConnect()
Invoke callback when connection is established.
Enum
DataPortStatus return codes.
Definition: BufferStatus.h:84
virtual ReturnCode read(cdrMemoryStream &data)
Reading data.
virtual CdrBufferBase * createBuffer(ConnectorInfo &info)
create buffer
DATAPORTSTATUS_ENUM InPortPushConnector(ConnectorInfo info, InPortProvider *provider, ConnectorListeners &listeners, CdrBufferBase *buffer=0)
Constructor.
InPortProvider * m_provider
the pointer to the InPortConsumer
virtual ReturnCode disconnect()
disconnect
InPortConnector base class.
virtual void activate()
Connector activation.
Publisher base class.
virtual ~InPortPushConnector()
Destructor.
virtual void deactivate()
Connector deactivation.
BufferBase abstract class.
Definition: BufferBase.h:104
InPortConsumer class.
void onDisconnect()
Invoke callback when connection is destroied.


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