EchoImpl.cpp
Go to the documentation of this file.
1 #include <doil/ImplBase.h>
2 #include "EchoImpl.h"
3 
4 //------------------------------------------------------------
5 // Implementation class
6 //------------------------------------------------------------
8 {
9  sprintf(m_name, "EchoSample%d", count);
10  ++count;
11 }
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 
void echo(std::string msg)
char m_name[16]
static int count
doil implementation base class
virtual ~EchoImpl()
std::string sprintf(char const *__restrict fmt,...)
Convert it into a format given with an argumen.
Definition: stringutil.cpp:593
const char * name()
const char * id()


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