InPortConnector.cpp
Go to the documentation of this file.
00001 // -*- C++ -*-
00020 #include <rtm/InPortConnector.h>
00021 
00022 namespace RTC
00023 {
00031   InPortConnector::InPortConnector(ConnectorInfo& info,
00032                                    CdrBufferBase* buffer)
00033     : rtclog("InPortConnector"), m_profile(info),
00034       m_buffer(buffer), m_littleEndian(true)
00035   {
00036   }
00037 
00045   InPortConnector::~InPortConnector()
00046   {
00047   }
00048 
00062   const ConnectorInfo& InPortConnector::profile()
00063   {
00064     RTC_TRACE(("profile()"));
00065     return m_profile;
00066   }
00067 
00081   const char* InPortConnector::id()
00082   {
00083     RTC_TRACE(("id() = %s", profile().id.c_str()));
00084     return profile().id.c_str();
00085   }
00086 
00100   const char* InPortConnector::name()
00101   {
00102     RTC_TRACE(("name() = %s", profile().name.c_str()));
00103     return profile().name.c_str();
00104   }
00105 
00119   CdrBufferBase* InPortConnector::getBuffer()
00120   {
00121     return m_buffer;
00122   }
00123 
00137   void InPortConnector::setEndian(const bool endian_type)
00138   {
00139     RTC_TRACE(("setEndian() = %s", endian_type ? "little":"big"));
00140     m_littleEndian = endian_type;
00141   }
00142 
00150   bool InPortConnector::isLittleEndian()
00151   {
00152     return m_littleEndian;
00153   }
00154 
00155 }; // namespace RTC


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