OutPortProvider.cpp
Go to the documentation of this file.
1 // -*- C++ -*-
20 #include <rtm/RTC.h>
21 #include <rtm/OutPortProvider.h>
22 
23 namespace RTC
24 {
33  {
34  }
35 
44  {
45  }
46 
55  {
56 #ifdef ORB_IS_RTORB
57  SDOPackage_NVList prop_ptr(*prop.cobj());
58  NVUtil::appendStringValue(prop_ptr, "dataport.interface_type",
59  m_interfaceType.c_str());
60 #else // ORB_IS_RTORB
61  NVUtil::appendStringValue(prop, "dataport.interface_type",
62  m_interfaceType.c_str());
63 #endif // ORB_IS_RTORB
65  }
66 
75  {
76  if (!NVUtil::isStringValue(prop,
77  "dataport.interface_type",
78  m_interfaceType.c_str()))
79  {
80  return false;
81  }
82 
84  return true;
85  }
86 
94  void OutPortProvider::setPortType(const char* port_type)
95  {
96  m_portType = port_type;
97  }
98 
106  void OutPortProvider::setDataType(const char* data_type)
107  {
108  m_dataType = data_type;
109  }
110 
118  void OutPortProvider::setInterfaceType(const char* interface_type)
119  {
120  m_interfaceType = interface_type;
121  }
122 
130  void OutPortProvider::setDataFlowType(const char* dataflow_type)
131  {
132  m_dataflowType = dataflow_type;
133  }
134 
142  void OutPortProvider::setSubscriptionType(const char* subs_type)
143  {
144  m_subscriptionType = subs_type;
145  }
146 }; // namespace RTC
RT-Component.
void setSubscriptionType(const char *subs_type)
Set the subscription type.
void setPortType(const char *port_type)
Set the port type.
void setInterfaceType(const char *interface_type)
Set the interface type.
bool appendStringValue(SDOPackage::NVList &nv, const char *name, const char *value)
Append the specified string to element of NVList.
Definition: NVUtil.cpp:313
std::vector< std::pair< std::string, std::string > > NVList
Definition: IRTC.h:67
virtual DATAPORTSTATUS_ENUM ~OutPortProvider(void)
Destructor.
void setDataType(const char *data_type)
Set the data type.
virtual void publishInterfaceProfile(SDOPackage::NVList &properties)
Publish InterfaceProfile information.
OutPortProvider class.
void setDataFlowType(const char *dataflow_type)
Set the data flow type.
void append(SDOPackage::NVList &dest, const SDOPackage::NVList &src)
Append an element to NVList.
Definition: NVUtil.cpp:354
prop
Organization::get_organization_property ();.
virtual void init(coil::Properties &prop)
Initializing configuration.
Class represents a set of properties.
Definition: Properties.h:101
virtual bool publishInterface(SDOPackage::NVList &properties)
Publish interface information.
std::string m_dataflowType
SDOPackage::NVList m_properties
Properties to hold the port profiles.
bool isStringValue(const SDOPackage::NVList &nv, const char *name, const char *value)
Check whether the value of specified name specified matches the specified string. ...
Definition: NVUtil.cpp:262
RTComponent header.
std::string m_interfaceType
std::string m_subscriptionType


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