SampleComponent_impl.cpp
Go to the documentation of this file.
00001 // -*- mode: c++; indent-tabs-mode: t; tab-width: 4; c-basic-offset: 4; -*-
00002 #include <iostream>
00003 #include "SampleComponent_impl.h"
00004 #include "SampleComponent.h"
00005 
00006 SampleComponent_impl::SampleComponent_impl()
00007 {
00008 }
00009 
00010 SampleComponent_impl::~SampleComponent_impl()
00011 {
00012 }
00013 
00014 void SampleComponent_impl::echo(const char *msg)
00015 {
00016         std::cout << "SampleComponent: " << msg << std::endl;
00017         if (std::string(msg) == "up") {
00018                 m_sample->resetOffset(-0.002);
00019         } else {
00020                 m_sample->resetOffset(0.002);
00021         }
00022 }
00023 
00024 void SampleComponent_impl::sample(SampleComponent *i_sample)
00025 {
00026     m_sample = i_sample;
00027 } 
00028 


hrpsys
Author(s): AIST, Fumio Kanehiro
autogenerated on Wed May 15 2019 05:02:18