OutPortConnector.cpp
Go to the documentation of this file.
00001 // -*- C++ -*-
00020 #include <rtm/OutPortConnector.h>
00021 
00022 namespace RTC
00023 {
00031   OutPortConnector::OutPortConnector(ConnectorInfo& info)
00032     : rtclog("OutPortConnector"), m_profile(info), m_littleEndian(true)
00033   {
00034   }
00035 
00043   OutPortConnector::~OutPortConnector()
00044   {
00045   }
00059   const ConnectorInfo& OutPortConnector::profile()
00060   {
00061     RTC_TRACE(("profile()"));
00062     return m_profile;
00063   }
00064 
00078   const char* OutPortConnector::id()
00079   {
00080     RTC_TRACE(("id() = %s", profile().id.c_str()));
00081     return profile().id.c_str();
00082   }
00083 
00097   const char* OutPortConnector::name()
00098   {
00099     RTC_TRACE(("name() = %s", profile().name.c_str()));
00100     return profile().name.c_str();
00101   }
00102 
00116   void OutPortConnector::setEndian(const bool endian_type)
00117   {
00118     RTC_TRACE(("setEndian() = %s", endian_type ? "little":"big"));
00119     m_littleEndian = endian_type;
00120   }
00121 
00129   bool OutPortConnector::isLittleEndian()
00130   {
00131     return m_littleEndian;
00132   }
00133 
00134 }; // namespace RTC


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Sun Mar 26 2017 03:37:16