InPortConnector.cpp
Go to the documentation of this file.
1 // -*- C++ -*-
20 #include <rtm/InPortConnector.h>
21 
22 namespace RTC
23 {
32  CdrBufferBase* buffer)
33  : rtclog("InPortConnector"), m_profile(info),
34  m_buffer(buffer), m_littleEndian(true)
35  {
36  }
37 
46  {
47  }
48 
63  {
64  RTC_TRACE(("profile()"));
65  return m_profile;
66  }
67 
81  const char* InPortConnector::id()
82  {
83  RTC_TRACE(("id() = %s", profile().id.c_str()));
84  return profile().id.c_str();
85  }
86 
100  const char* InPortConnector::name()
101  {
102  RTC_TRACE(("name() = %s", profile().name.c_str()));
103  return profile().name.c_str();
104  }
105 
120  {
121  return m_buffer;
122  }
123 
137  void InPortConnector::setEndian(const bool endian_type)
138  {
139  RTC_TRACE(("setEndian() = %s", endian_type ? "little":"big"));
140  m_littleEndian = endian_type;
141  }
142 
151  {
152  return m_littleEndian;
153  }
154 
155 }; // namespace RTC
ConnectorInfo m_profile
ConnectorInfo.
RT-Component.
virtual const ConnectorInfo & profile()
Getting ConnectorInfo.
CdrBufferBase * m_buffer
Connector&#39;s buffer.
virtual CdrBufferBase * getBuffer()
Getting Buffer.
#define RTC_TRACE(fmt)
InPortConnector base class.
virtual const char * name()
Getting Connector name.
virtual void setEndian(const bool endian_type)
Setting an endian type.
std::string name
Connection name.
virtual const char * id()
Getting Connector ID.
virtual ~InPortConnector()
Destructor.
virtual bool isLittleEndian()
Whether this connector&#39;s endian is little.
DATAPORTSTATUS_ENUM InPortConnector(ConnectorInfo &info, CdrBufferBase *buffer)
Constructor.
BufferBase abstract class.
Definition: BufferBase.h:104
bool m_littleEndian
Connected Endian.
std::string id
ConnectionID.


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