IceServantBase.h
Go to the documentation of this file.
1 // -*- C++ -*-
19 #ifndef DOIL_ICE_ICESERVANTBASE_H
20 #define DOIL_ICE_ICESERVANTBASE_H
21 
22 #include <rtm/config_rtc.h>
23 #include <doil/ServantBase.h>
24 #include <doil/ImplBase.h>
25 #include <doil/ice/Ice.h>
26 
27 namespace doil
28 {
29 namespace Ice
30 {
32  : public virtual doil::ServantBase,
33  public virtual ::Ice::Object
34  {
35  public:
37  : m_refcount(1), m_id(impl->id()), m_name(impl->name())
38  {
39  }
40  virtual ~IceServantBase(){}
41 
42  virtual const char* id() const
43  {
44  return m_id.c_str();
45  }
46 
47  virtual const char* name() const
48  {
49  return m_name.c_str();
50  }
51 
52  virtual void incRef()
53  {
54  ++m_refcount;
55  }
56 
57  virtual void decRef()
58  {
59  --m_refcount;
60  if (m_refcount == 0)
61  delete this;
62  }
63 
64  protected:
66  std::string m_id;
67  std::string m_name;
68 
69  };
70 }; // namespoace doil
71 }; // namespace Ice
72 #endif // DOIL_ICE_ICESERVANTBASE_H
73 
virtual const char * name() const
doil implementation base class
IceServantBase(ImplBase *impl)
doil Ice header
doil implementation base class
virtual const char * id() const


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