PublisherBase.h
Go to the documentation of this file.
1 // -*- C++ -*-
20 #ifndef RTC_PUBLISHERBASE_H
21 #define RTC_PUBLISHERBASE_H
22 
23 #include <coil/Properties.h>
24 #include <coil/Factory.h>
25 #include <rtm/RTC.h>
26 #include <rtm/CdrBufferBase.h>
27 #include <rtm/DataPortStatus.h>
28 
29 namespace coil
30 {
31  class Properties;
32 }
33 namespace RTC
34 {
35  class InPortConsumer;
36  class ConnectorListeners;
37  class ConnectorInfo;
38 
64  : public DataPortStatus
65  {
66  public:
79  virtual ~PublisherBase(void){};
80 
108  virtual ReturnCode init(coil::Properties& prop) = 0;
109 
135  virtual ReturnCode setConsumer(InPortConsumer* consumer) = 0;
136 
162  virtual ReturnCode setBuffer(BufferBase<cdrMemoryStream>* buffer) = 0;
163 
197  virtual ReturnCode setListener(ConnectorInfo& info,
198  ConnectorListeners* listeners) = 0;
199 
256  virtual ReturnCode write(const cdrMemoryStream& data,
257  unsigned long sec,
258  unsigned long usec) = 0;
259 
287  virtual bool isActive() = 0;
288 
314  virtual ReturnCode activate() = 0;
315 
341  virtual ReturnCode deactivate() = 0;
342 
361  virtual void release(){}
362  };
363 
365 
366 #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
368 #endif
369 };
370 #endif // RTC_PUBLISHERBASE_H
ConnectorListeners class.
InPortConsumer abstract class.
#define DLL_PLUGIN
#define DATAPORTSTATUS_ENUM
Importing RTC::DataPortStatus macro.
DataPortStatus class.
RT-Component.
virtual DATAPORTSTATUS_ENUM ~PublisherBase(void)
Destructor.
Definition: PublisherBase.h:79
GlobalFactory template class.
Enum
DataPortStatus return codes.
Definition: BufferStatus.h:84
virtual void release()
Release the Publisher.
prop
Organization::get_organization_property ();.
Class represents a set of properties.
Definition: Properties.h:101
Base class of Publisher.
Definition: PublisherBase.h:63
RTComponent header.
coil::GlobalFactory< PublisherBase > PublisherFactory
DataPortStatus mixin class.
BufferBase abstract class.
Definition: BufferBase.h:104
#define EXTERN
Common Object Interface Layer.


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