AutoTestServiceSVC_impl.h
Go to the documentation of this file.
00001 // -*-C++-*-
00008 #include <iostream>
00009 #include "AutoTestServiceSkel.h"
00010 
00011 #ifndef AUTOTESTSERVICESVC_IMPL_H
00012 #define AUTOTESTSERVICESVC_IMPL_H
00013  
00018 class MyServiceSVC_impl
00019  : public virtual POA_AutoTest::MyService,
00020    public virtual PortableServer::RefCountServantBase
00021 {
00022 private:
00023   // Make sure all instances are built on the heap by making the
00024   // destructor non-public
00025   //virtual ~MyServiceSVC_impl();
00026   
00027 public:
00031   MyServiceSVC_impl();
00035   virtual ~MyServiceSVC_impl();
00036 
00037   // attributes and operations
00038   char* echo(const char* msg);
00039   AutoTest::EchoList* get_echo_history();
00040   void set_value(CORBA::Float value);
00041   CORBA::Float get_value();
00042   AutoTest::ValueList* get_value_history();
00043 
00044   void reset_message()
00045   {
00046     m_isNew = false;
00047     m_msg ="";
00048   }
00049 
00050   std::string get_echo_message() {
00051     if (m_isNew) {
00052       m_isNew = false;
00053       return m_msg;
00054     }
00055     return "";
00056   }
00057 
00058 private:
00059   std::string m_msg;
00060   bool m_isNew;
00061 };
00062 
00063 
00064 
00065 #endif // AUTOTESTSERVICESVC_IMPL_H
00066 
00067 


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Sun Mar 26 2017 03:37:14