InPortCorbaCdrConsumer.h
Go to the documentation of this file.
1 // -*- C++ -*-
20 #ifndef RTC_INPORTCORBACDRCONSUMER_H
21 #define RTC_INPORTCORBACDRCONSUMER_H
22 
23 
24 //#include <rtm/BufferBase.h>
25 
26 #include <rtm/idl/DataPortSkel.h>
27 #include <rtm/CorbaConsumer.h>
28 #include <rtm/InPortConsumer.h>
29 #include <rtm/Manager.h>
30 
31 namespace RTC
32 {
58  : public InPortConsumer,
59  public CorbaConsumer< ::OpenRTM::InPortCdr >
60  {
61  public:
81 
95  virtual ~InPortCorbaCdrConsumer(void);
96 
124  virtual void init(coil::Properties& prop);
125 
158  virtual ReturnCode put(const cdrMemoryStream& data);
159 
183  virtual void publishInterfaceProfile(SDOPackage::NVList& properties);
184 
207  virtual bool subscribeInterface(const SDOPackage::NVList& properties);
208 
226  virtual void unsubscribeInterface(const SDOPackage::NVList& properties);
227 
228  private:
242  bool subscribeFromIor(const SDOPackage::NVList& properties);
243 
257  bool subscribeFromRef(const SDOPackage::NVList& properties);
258 
272  bool unsubscribeFromIor(const SDOPackage::NVList& properties);
273 
287  bool unsubscribeFromRef(const SDOPackage::NVList& properties);
288 
289  private:
297  InPortConsumer::ReturnCode convertReturnCode(OpenRTM::PortStatus ret);
298 
299  mutable Logger rtclog;
301  };
302 }; // namespace RTC
303 
304 extern "C"
305 {
319  void InPortCorbaCdrConsumerInit(void);
320 };
321 
322 #endif // RTC_INPORTCORBACDRCONSUMER_H
323 
virtual bool subscribeInterface(const SDOPackage::NVList &properties)
Subscribe to the data sending notification.
InPortConsumer abstract class.
CORBA Consumer class.
#define DATAPORTSTATUS_ENUM
Importing RTC::DataPortStatus macro.
RT-Component.
std::vector< std::pair< std::string, std::string > > NVList
Definition: IRTC.h:67
RTC::ReturnCode_t ret(RTC::Local::ReturnCode_t r)
virtual void unsubscribeInterface(const SDOPackage::NVList &properties)
Unsubscribe the data send notification.
virtual ReturnCode put(const cdrMemoryStream &data)
Send data to the destination port.
Enum
DataPortStatus return codes.
Definition: BufferStatus.h:84
RTComponent manager class.
bool unsubscribeFromRef(const SDOPackage::NVList &properties)
ubsubscribing (Object reference version)
void InPortCorbaCdrConsumerInit(void)
Module initialization.
bool unsubscribeFromIor(const SDOPackage::NVList &properties)
ubsubscribing (IOR version)
::RTC::BufferStatus::Enum ReturnCode
prop
Organization::get_organization_property ();.
bool subscribeFromIor(const SDOPackage::NVList &properties)
Getting object reference fromn IOR string.
Class represents a set of properties.
Definition: Properties.h:101
bool subscribeFromRef(const SDOPackage::NVList &properties)
Getting object reference fromn Any directry.
virtual ~InPortCorbaCdrConsumer(void)
Destructor.
InPortConsumer::ReturnCode convertReturnCode(OpenRTM::PortStatus ret)
Return codes conversion.
DATAPORTSTATUS_ENUM InPortCorbaCdrConsumer(void)
Constructor.
InPortConsumer class.
virtual void init(coil::Properties &prop)
Initializing configuration.
virtual void publishInterfaceProfile(SDOPackage::NVList &properties)
Publish InterfaceProfile information.


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Jun 10 2019 14:07:52