OpenRTM-aist  2.1.0
InPortCorbaCdrConsumer.h
Go to the documentation of this file.
1 // -*- C++ -*-
20 #ifndef RTC_INPORTCORBACDRCONSUMER_H
21 #define RTC_INPORTCORBACDRCONSUMER_H
22 
23 
24 
25 #include <rtm/idl/DataPort_OpenRTMSkel.h>
26 #include <rtm/CorbaConsumer.h>
27 #include <rtm/InPortConsumer.h>
28 #include <rtm/Manager.h>
29 
30 namespace RTC
31 {
57  : public InPortConsumer,
58  public CorbaConsumer< ::OpenRTM::InPortCdr >
59  {
60  public:
79 
94 
122  void init(coil::Properties& prop) override;
123 
156  DataPortStatus put(ByteData& data) override;
157 
181  void publishInterfaceProfile(SDOPackage::NVList& properties) override;
182 
205  bool subscribeInterface(const SDOPackage::NVList& properties) override;
206 
224  void unsubscribeInterface(const SDOPackage::NVList& properties) override;
225 
226  private:
240  bool subscribeFromIor(const SDOPackage::NVList& properties);
241 
255  bool subscribeFromRef(const SDOPackage::NVList& properties);
256 
270  bool unsubscribeFromIor(const SDOPackage::NVList& properties);
271 
285  bool unsubscribeFromRef(const SDOPackage::NVList& properties);
286 
287  private:
295  static DataPortStatus convertReturnCode(OpenRTM::PortStatus ret);
296 
297  mutable Logger rtclog;
298  coil::Properties m_properties;
299  ::OpenRTM::CdrData m_data;
300  };
301 } // namespace RTC
302 
303 extern "C"
304 {
319 }
320 
321 #endif // RTC_INPORTCORBACDRCONSUMER_H
322 
CORBA Consumer class.
InPortConsumer class.
void InPortCorbaCdrConsumerInit(void)
Module initialization.
-*- C++ -*-
DataPortStatus mixin class.
Definition: ConnectorListener.h:35
Definition: ByteData.h:30
Definition: CorbaConsumer.h:333
InPortConsumer abstract class.
Definition: InPortConsumer.h:78
InPortCorbaCdrConsumer class.
Definition: InPortCorbaCdrConsumer.h:59
void publishInterfaceProfile(SDOPackage::NVList &properties) override
Publish InterfaceProfile information.
void unsubscribeInterface(const SDOPackage::NVList &properties) override
Unsubscribe the data send notification.
bool subscribeInterface(const SDOPackage::NVList &properties) override
Subscribe to the data sending notification.
void init(coil::Properties &prop) override
Initializing configuration.
DataPortStatus put(ByteData &data) override
Send data to the destination port.
~InPortCorbaCdrConsumer() override
Destructor.
InPortCorbaCdrConsumer()
Constructor.
Logger class.
Definition: SystemLogger.h:101
RT-Component.
coil::Properties Properties
Definition: RTC.h:72