OutPortProvider.cpp
Go to the documentation of this file.
00001 // -*- C++ -*-
00020 #include <rtm/RTC.h>
00021 #include <rtm/OutPortProvider.h>
00022 
00023 namespace RTC
00024 {
00032   OutPortProvider::~OutPortProvider(void)
00033   {
00034   }
00035   
00043   void OutPortProvider::init(coil::Properties& prop)
00044   {
00045   }
00046 
00054   void OutPortProvider::publishInterfaceProfile(SDOPackage::NVList& prop)
00055   {
00056 #ifdef ORB_IS_RTORB
00057     SDOPackage_NVList prop_ptr(*prop.cobj());
00058     NVUtil::appendStringValue(prop_ptr, "dataport.interface_type",
00059                               m_interfaceType.c_str());
00060 #else // ORB_IS_RTORB
00061     NVUtil::appendStringValue(prop, "dataport.interface_type",
00062                              m_interfaceType.c_str());
00063 #endif // ORB_IS_RTORB
00064     NVUtil::append(prop, m_properties);
00065   }
00066   
00074   bool OutPortProvider::publishInterface(SDOPackage::NVList& prop)
00075   {
00076     if (!NVUtil::isStringValue(prop,
00077                                "dataport.interface_type",
00078                                m_interfaceType.c_str()))
00079       {
00080         return false;
00081       }
00082     
00083     NVUtil::append(prop, m_properties);
00084     return true;
00085   }
00086   
00094   void OutPortProvider::setPortType(const char* port_type)
00095   {
00096     m_portType = port_type;
00097   }
00098   
00106   void OutPortProvider::setDataType(const char* data_type)
00107   {
00108     m_dataType = data_type;
00109   }
00110   
00118   void OutPortProvider::setInterfaceType(const char* interface_type)
00119   {
00120     m_interfaceType = interface_type;
00121   }
00122   
00130   void OutPortProvider::setDataFlowType(const char* dataflow_type)
00131   {
00132     m_dataflowType = dataflow_type;
00133   }
00134   
00142   void OutPortProvider::setSubscriptionType(const char* subs_type)
00143   {
00144     m_subscriptionType = subs_type;
00145   }
00146 }; // namespace RTC


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Aug 27 2015 14:16:38