ExecutionContextAdapter.cpp
Go to the documentation of this file.
1 // -*- C++ -*-
19 #include <doil/corba/util.h>
21 #include <rtc/corba/util.h>
22 
23 namespace RTC
24 {
25 namespace CORBA
26 {
27  using namespace doil::CORBA;
28  ExecutionContextAdapter::ExecutionContextAdapter(RTC::ExecutionContext_ptr obj)
29  : m_obj(obj)
30  {
31  }
32 
34  {
35  }
36 
38  {
39  return m_obj->is_running();
40  }
41 
43  {
44  return to_local(m_obj->start());
45  }
46 
48  {
49  return to_local(m_obj->stop());
50  }
51 
53  {
54  return m_obj->get_rate();
55  }
56 
58  {
59  return to_local(m_obj->set_rate(rate));
60  }
61 
64  {
65  RTC::LightweightRTObject_ptr rtobj;
66  rtobj = to_reference<RTC::LightweightRTObject>(&comp);
67  return to_local(m_obj->add_component(rtobj));
68  }
69 
72  {
73  RTC::LightweightRTObject_ptr rtobj;
74  rtobj = to_reference<RTC::LightweightRTObject>(&comp);
75  return to_local(m_obj->remove_component(rtobj));
76  }
77 
80  {
81  RTC::LightweightRTObject_ptr rtobj;
82  rtobj = to_reference<RTC::LightweightRTObject>(&comp);
83  return to_local(m_obj->activate_component(rtobj));
84  }
85 
88  {
89  RTC::LightweightRTObject_ptr rtobj;
90  rtobj = to_reference<RTC::LightweightRTObject>(&comp);
91  return to_local(m_obj->deactivate_component(rtobj));
92  }
93 
96  {
97  RTC::LightweightRTObject_ptr rtobj;
98  rtobj = to_reference<RTC::LightweightRTObject>(&comp);
99  return to_local(m_obj->reset_component(rtobj));
100  }
101 
104  {
105  RTC::LightweightRTObject_ptr rtobj;
106  rtobj = to_reference<RTC::LightweightRTObject>(&comp);
107  return to_local(m_obj->get_component_state(rtobj));
108  }
109 
112  {
113  return to_local(m_obj->get_kind());
114  }
115 
116 // const ExecutionContextProfile&
117 // ExecutionContextAdapter::get_profile() const
118 // {
119 // m_profile = to_local(m_obj->get_profile());
120 // return m_profile;
121 // }
122 }; // namespace CORBA
123 }; // namespace RTC
RT-Component.
virtual ReturnCode_t deactivate_component(RTC::Local::ILightweightRTObject &comp)
ExecutionContextAdapter.
virtual ReturnCode_t reset_component(RTC::Local::ILightweightRTObject &comp)
virtual LifeCycleState get_component_state(RTC::Local::ILightweightRTObject &comp)
ExecutionKind
Definition: IRTC.h:48
ReturnCode_t
Definition: IRTC.h:30
virtual ExecutionKind get_kind() const
virtual ReturnCode_t set_rate(double rate)
virtual ReturnCode_t remove_component(RTC::Local::ILightweightRTObject &comp)
LifeCycleState
Definition: IRTC.h:40
RTC::Local::ReturnCode_t to_local(RTC::ReturnCode_t x)
RTC::ReturnCode_t -> RTC::Local::ReturnCode_t conversion.
ILightweightRTObject interface class.
virtual ReturnCode_t activate_component(RTC::Local::ILightweightRTObject &comp)
virtual ReturnCode_t add_component(RTC::Local::ILightweightRTObject &comp)
ExecutionContextAdapter(RTC::ExecutionContext_ptr obj)


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Jun 6 2019 19:25:58