InPortConsumer.h
Go to the documentation of this file.
1 // -*- C++ -*-
20 #ifndef RTC_INPORTCONSUMER_H
21 #define RTC_INPORTCONSUMER_H
22 
23 #include <coil/Factory.h>
24 #include <rtm/DataPortStatus.h>
25 
26 namespace coil
27 {
28  class Properties;
29 };
30 
31 // Why RtORB does not allow forward declaration?
32 #ifndef ORB_IS_RTORB
33 namespace SDOPackage
34 {
35  class NVList;
36 };
37 #endif // ORB_IS_RTORB
38 
39 class cdrMemoryStream;
40 
41 namespace RTC
42 {
77  : public DataPortStatus
78  {
79  public:
81 
95  virtual ~InPortConsumer(void){};
96 
111  virtual void init(coil::Properties& prop) = 0;
112 
147  virtual ReturnCode put(const cdrMemoryStream& data) = 0;
148 
172  virtual void publishInterfaceProfile(SDOPackage::NVList& properties) = 0;
173 
197  virtual bool subscribeInterface(const SDOPackage::NVList& properties) = 0;
198 
216  virtual void unsubscribeInterface(const SDOPackage::NVList& properties) = 0;
217 
226  {
228  void operator()(InPortConsumer* consumer)
229  {
230  consumer->publishInterfaceProfile(m_prop);
231  }
233  };
234 
243  {
245  bool operator()(InPortConsumer* consumer)
246  {
247  return consumer->subscribeInterface(m_prop);
248  }
250  };
251 
252 
253  };
254 
255  typedef ::coil::GlobalFactory<InPortConsumer> InPortConsumerFactory;
256 
257 #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
258  EXTERN template class DLL_PLUGIN ::coil::GlobalFactory<InPortConsumer>;
259 #endif
260 }; // namespace RTC
261 
262 #endif // RTC_INPORTCONSUMER_H
InPortConsumer abstract class.
::coil::GlobalFactory< InPortConsumer > InPortConsumerFactory
#define DATAPORTSTATUS_ENUM
Importing RTC::DataPortStatus macro.
bool operator()(InPortConsumer *consumer)
DataPortStatus class.
RT-Component.
std::vector< std::pair< std::string, std::string > > NVList
Definition: IRTC.h:67
Enum
DataPortStatus return codes.
Definition: BufferStatus.h:84
SDO Package.
publishInterfaceProfileFunc(SDOPackage::NVList &prop)
prop
Organization::get_organization_property ();.
Class represents a set of properties.
Definition: Properties.h:101
DataPortStatus mixin class.
subscribeInterfaceFunc(SDOPackage::NVList &prop)
virtual DATAPORTSTATUS_ENUM ~InPortConsumer(void)
Destructor.
#define EXTERN
Functor to publish interface profile.
virtual void publishInterfaceProfile(SDOPackage::NVList &properties)=0
Publish InterfaceProfile information.
virtual bool subscribeInterface(const SDOPackage::NVList &properties)=0
Subscribe the data send notification.
Functor to publish interface profile.
Common Object Interface Layer.


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