OpenRTM-aist  2.1.0
InPortCorbaCdrUDPConsumer.h
Go to the documentation of this file.
1 // -*- C++ -*-
19 #ifndef RTC_INPORTCORBACDRUDPCONSUMER_H
20 #define RTC_INPORTCORBACDRUDPCONSUMER_H
21 
22 
23 
24 #include <rtm/idl/DataPortUDPSkel.h>
25 #include <rtm/CorbaConsumer.h>
26 #include <rtm/InPortConsumer.h>
27 #include <rtm/Manager.h>
28 
29 namespace RTC
30 {
56  : public InPortConsumer,
57  public CorbaConsumer< ::OpenRTM::InPortCdrUDP >
58  {
59  public:
78 
93 
121  void init(coil::Properties& prop) override;
122 
155  DataPortStatus put(ByteData& data) override;
156 
180  void publishInterfaceProfile(SDOPackage::NVList& properties) override;
181 
204  bool subscribeInterface(const SDOPackage::NVList& properties) override;
205 
223  void unsubscribeInterface(const SDOPackage::NVList& properties) override;
224 
225  private:
239  bool subscribeFromIor(const SDOPackage::NVList& properties);
240 
254  bool subscribeFromRef(const SDOPackage::NVList& properties);
255 
269  bool unsubscribeFromIor(const SDOPackage::NVList& properties);
270 
284  bool unsubscribeFromRef(const SDOPackage::NVList& properties);
285 
286  private:
287 
288 
289  mutable Logger rtclog;
290  coil::Properties m_properties;
291  ::OpenRTM::CdrData m_data;
292  };
293 } // namespace RTC
294 
295 extern "C"
296 {
311 }
312 
313 #endif // RTC_INPORTCORBACDRUDPCONSUMER_H
314 
CORBA Consumer class.
InPortConsumer class.
void InPortCorbaCdrUDPConsumerInit(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
InPortCorbaCdrUDPConsumer class.
Definition: InPortCorbaCdrUDPConsumer.h:58
InPortCorbaCdrUDPConsumer(void)
Constructor.
DataPortStatus put(ByteData &data) override
Send data to the destination port.
~InPortCorbaCdrUDPConsumer(void) override
Destructor.
void unsubscribeInterface(const SDOPackage::NVList &properties) override
Unsubscribe the data send notification.
void init(coil::Properties &prop) override
Initializing configuration.
void publishInterfaceProfile(SDOPackage::NVList &properties) override
Publish InterfaceProfile information.
bool subscribeInterface(const SDOPackage::NVList &properties) override
Subscribe to the data sending notification.
Logger class.
Definition: SystemLogger.h:101
RT-Component.
coil::Properties Properties
Definition: RTC.h:72