EchoImpl.cpp
Go to the documentation of this file.
00001 #include <doil/ImplBase.h>
00002 #include "EchoImpl.h"
00003 
00004 //------------------------------------------------------------
00005 // Implementation class
00006 //------------------------------------------------------------
00007 EchoImpl::EchoImpl()
00008 {
00009   sprintf(m_name, "EchoSample%d", count);
00010   ++count;
00011 }
00012 EchoImpl::~EchoImpl()
00013 {
00014   std::cout << "EchoImpl: " << name() << " deleted." << std::endl;
00015 }
00016 const char* EchoImpl::id() {return "EchoSample";}
00017 const char* EchoImpl::name() {return m_name;}
00018 void EchoImpl::incRef(){}
00019 void EchoImpl::decRef(){}
00020 void EchoImpl::echo(std::string msg)
00021 {
00022   std::cout << name() <<  " -> Message is: " << msg << std::endl;
00023   return;
00024 }
00025 int EchoImpl::count = 0;
00026 
00027 


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Sat Jun 8 2019 18:49:04