src
lib
doil
tests
ORBManager
EchoImpl.cpp
Go to the documentation of this file.
1
#include <
doil/ImplBase.h
>
2
#include "
EchoImpl.h
"
3
4
//------------------------------------------------------------
5
// Implementation class
6
//------------------------------------------------------------
7
EchoImpl::EchoImpl
()
8
{
9
sprintf
(
m_name
,
"EchoSample%d"
,
count
);
10
++
count
;
11
}
12
EchoImpl::~EchoImpl
()
13
{
14
std::cout <<
"EchoImpl: "
<<
name
() <<
" deleted."
<< std::endl;
15
}
16
const
char
*
EchoImpl::id
() {
return
"EchoSample"
;}
17
const
char
*
EchoImpl::name
() {
return
m_name
;}
18
void
EchoImpl::incRef
(){}
19
void
EchoImpl::decRef
(){}
20
void
EchoImpl::echo
(std::string msg)
21
{
22
std::cout <<
name
() <<
" -> Message is: "
<< msg << std::endl;
23
return
;
24
}
25
int
EchoImpl::count
= 0;
26
27
EchoImpl::echo
void echo(std::string msg)
Definition:
CORBAManagerTests.cpp:48
EchoImpl::m_name
char m_name[16]
Definition:
CORBAManagerTests.cpp:54
EchoImpl::incRef
void incRef()
Definition:
CORBAManagerTests.cpp:46
EchoImpl::count
static int count
Definition:
CORBAManagerTests.cpp:53
ImplBase.h
doil implementation base class
EchoImpl::~EchoImpl
virtual ~EchoImpl()
Definition:
CORBAManagerTests.cpp:40
EchoImpl::decRef
void decRef()
Definition:
CORBAManagerTests.cpp:47
coil::sprintf
std::string sprintf(char const *__restrict fmt,...)
Convert it into a format given with an argumen.
Definition:
stringutil.cpp:598
EchoImpl::name
const char * name()
Definition:
CORBAManagerTests.cpp:45
EchoImpl.h
EchoImpl::id
const char * id()
Definition:
CORBAManagerTests.cpp:44
EchoImpl::EchoImpl
EchoImpl()
Definition:
CORBAManagerTests.cpp:35
openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Feb 28 2022 23:00:43