OutPortPushConnector.h
Go to the documentation of this file.
1 // -*- C++ -*-
20 #ifndef RTC_OUTPORTPUSHCONNECTOR_H
21 #define RTC_OUTPORTPUSHCONNECTOR_H
22 
23 #include <rtm/OutPortConnector.h>
24 #include <rtm/InPortConsumer.h>
25 #include <rtm/PublisherBase.h>
26 
27 namespace RTC
28 {
29  class ConnectorListeners;
30 
86  : public OutPortConnector
87  {
88  public:
90 
132  InPortConsumer* consumer,
133  ConnectorListeners& listeners,
134  CdrBufferBase* buffer = 0);
135 
151  virtual ~OutPortPushConnector();
152 
192  virtual ReturnCode write(const cdrMemoryStream& data);
193 
209  virtual ReturnCode disconnect();
210 
225  virtual void activate();
226 
241  virtual void deactivate();
242 
256  virtual CdrBufferBase* getBuffer();
257 
258  protected:
279 
299  virtual CdrBufferBase* createBuffer(ConnectorInfo& info);
300 
308  void onConnect();
309 
317  void onDisconnect();
318 
319  private:
328 
337 
346 
355 
356  };
357 }; // namespace RTC
358 
359 #endif // RTC_PUSH_CONNECTOR_H
virtual ReturnCode write(const cdrMemoryStream &data)
Writing data.
void onDisconnect()
Invoke callback when connection is destroied.
ConnectorListeners class.
InPortConsumer abstract class.
virtual void activate()
Connector activation.
#define DATAPORTSTATUS_ENUM
Importing RTC::DataPortStatus macro.
RT-Component.
void onConnect()
Invoke callback when connection is established.
virtual CdrBufferBase * getBuffer()
Getting Buffer.
virtual void deactivate()
Connector deactivation.
OutPortConnector class.
virtual CdrBufferBase * createBuffer(ConnectorInfo &info)
create buffer
virtual ReturnCode disconnect()
disconnect
ConnectorListeners & m_listeners
A reference to a ConnectorListener.
Enum
DataPortStatus return codes.
Definition: BufferStatus.h:84
CdrBufferBase * m_buffer
A pointer to a buffer.
InPortConsumer * m_consumer
A pointer to an InPortConsumer.
PublisherBase * m_publisher
A pointer to a publisher.
virtual PublisherBase * createPublisher(ConnectorInfo &info)
create buffer
DATAPORTSTATUS_ENUM OutPortPushConnector(ConnectorInfo info, InPortConsumer *consumer, ConnectorListeners &listeners, CdrBufferBase *buffer=0)
Constructor.
Publisher base class.
Base class of Publisher.
Definition: PublisherBase.h:63
virtual ~OutPortPushConnector()
Destructor.
BufferBase abstract class.
Definition: BufferBase.h:104
InPortConsumer class.


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Jun 10 2019 14:07:54