AutoTestServiceSVC_impl.h
Go to the documentation of this file.
1 // -*-C++-*-
8 #include <iostream>
9 #include "AutoTestServiceSkel.h"
10 
11 #ifndef AUTOTESTSERVICESVC_IMPL_H
12 #define AUTOTESTSERVICESVC_IMPL_H
13 
19  : public virtual POA_AutoTest::MyService,
20  public virtual PortableServer::RefCountServantBase
21 {
22 private:
23  // Make sure all instances are built on the heap by making the
24  // destructor non-public
25  //virtual ~MyServiceSVC_impl();
26 
27 public:
35  virtual ~MyServiceSVC_impl();
36 
37  // attributes and operations
38  char* echo(const char* msg);
39  AutoTest::EchoList* get_echo_history();
40  void set_value(CORBA::Float value);
41  CORBA::Float get_value();
42  AutoTest::ValueList* get_value_history();
43 
45  {
46  m_isNew = false;
47  m_msg ="";
48  }
49 
50  std::string get_echo_message() {
51  if (m_isNew) {
52  m_isNew = false;
53  return m_msg;
54  }
55  return "";
56  }
57 
58 private:
59  std::string m_msg;
60  bool m_isNew;
61 };
62 
63 
64 
65 #endif // AUTOTESTSERVICESVC_IMPL_H
66 
67 
AutoTest::ValueList * get_value_history()
char * echo(const char *msg)
virtual ~MyServiceSVC_impl()
destructor
std::string get_echo_message()
void set_value(CORBA::Float value)
AutoTest::EchoList * get_echo_history()
MyServiceSVC_impl()
standard constructor


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Feb 28 2022 23:00:42