OutPortConnector.cpp
Go to the documentation of this file.
1 // -*- C++ -*-
20 #include <rtm/OutPortConnector.h>
21 
22 namespace RTC
23 {
32  : rtclog("OutPortConnector"), m_profile(info), m_littleEndian(true)
33  {
34  }
35 
44  {
45  }
60  {
61  RTC_TRACE(("profile()"));
62  return m_profile;
63  }
64 
78  const char* OutPortConnector::id()
79  {
80  RTC_TRACE(("id() = %s", profile().id.c_str()));
81  return profile().id.c_str();
82  }
83 
97  const char* OutPortConnector::name()
98  {
99  RTC_TRACE(("name() = %s", profile().name.c_str()));
100  return profile().name.c_str();
101  }
102 
116  void OutPortConnector::setEndian(const bool endian_type)
117  {
118  RTC_TRACE(("setEndian() = %s", endian_type ? "little":"big"));
119  m_littleEndian = endian_type;
120  }
121 
130  {
131  return m_littleEndian;
132  }
133 
134 }; // namespace RTC
RT-Component.
DATAPORTSTATUS_ENUM OutPortConnector(ConnectorInfo &info)
Constructor.
OutPortConnector class.
virtual void setEndian(const bool endian_type)
Setting an endian type.
ConnectorInfo m_profile
PortProfile of the Port.
virtual bool isLittleEndian()
return it whether endian setting.
#define RTC_TRACE(fmt)
std::string name
Connection name.
const char * id()
Getting Connector ID.
std::string id
ConnectionID.
const ConnectorInfo & profile()
Getting Profile.
virtual ~OutPortConnector()
Destructor.
const char * name()
Getting Connector name.
bool m_littleEndian
Connected Endian.


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Jun 6 2019 19:25:59