Main Page
Namespaces
Classes
Files
File List
File Members
src
lib
rtm
OutPortConnector.cpp
Go to the documentation of this file.
1
// -*- C++ -*-
20
#include <
rtm/OutPortConnector.h
>
21
22
namespace
RTC
23
{
31
OutPortConnector::OutPortConnector
(
ConnectorInfo
& info)
32
: rtclog(
"OutPortConnector"
), m_profile(info), m_littleEndian(true)
33
{
34
}
35
43
OutPortConnector::~OutPortConnector
()
44
{
45
}
59
const
ConnectorInfo
&
OutPortConnector::profile
()
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
129
bool
OutPortConnector::isLittleEndian
()
130
{
131
return
m_littleEndian
;
132
}
133
134
};
// namespace RTC
RTC
RT-Component.
Definition:
ArtExecutionContext.cpp:29
RTC::OutPortConnector::OutPortConnector
DATAPORTSTATUS_ENUM OutPortConnector(ConnectorInfo &info)
Constructor.
Definition:
OutPortConnector.cpp:31
OutPortConnector.h
OutPortConnector class.
RTC::ConnectorInfo
Definition:
ConnectorBase.h:43
RTC::OutPortConnector::setEndian
virtual void setEndian(const bool endian_type)
Setting an endian type.
Definition:
OutPortConnector.cpp:116
RTC::OutPortConnector::m_profile
ConnectorInfo m_profile
PortProfile of the Port.
Definition:
OutPortConnector.h:234
RTC::OutPortConnector::isLittleEndian
virtual bool isLittleEndian()
return it whether endian setting.
Definition:
OutPortConnector.cpp:129
RTC_TRACE
#define RTC_TRACE(fmt)
Definition:
LoggerTests.cpp:213
RTC::ConnectorInfo::name
std::string name
Connection name.
Definition:
ConnectorBase.h:102
RTC::OutPortConnector::id
const char * id()
Getting Connector ID.
Definition:
OutPortConnector.cpp:78
RTC::ConnectorInfo::id
std::string id
ConnectionID.
Definition:
ConnectorBase.h:110
RTC::OutPortConnector::profile
const ConnectorInfo & profile()
Getting Profile.
Definition:
OutPortConnector.cpp:59
RTC::OutPortConnector::~OutPortConnector
virtual ~OutPortConnector()
Destructor.
Definition:
OutPortConnector.cpp:43
RTC::OutPortConnector::name
const char * name()
Getting Connector name.
Definition:
OutPortConnector.cpp:97
RTC::OutPortConnector::m_littleEndian
bool m_littleEndian
Connected Endian.
Definition:
OutPortConnector.h:242
openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Jun 6 2019 19:25:59