OpenRTM  1.0.0
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 
128  OutPortProvider* provider,
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