AutoTestOut.h
Go to the documentation of this file.
1 // -*- C++ -*-
10 #ifndef AUTOTESTOUT_H
11 #define AUTOTESTOUT_H
12 
13 #include <rtm/Manager.h>
15 #include <rtm/CorbaPort.h>
16 #include <rtm/DataInPort.h>
17 #include <rtm/DataOutPort.h>
18 #include <rtm/idl/BasicDataTypeSkel.h>
19 
20 #include <sstream>
21 #include <iostream>
22 
23 // Service implementation headers
24 // <rtc-template block="service_impl_h">
25 
26 // </rtc-template>
27 
28 // Service Consumer stub headers
29 // <rtc-template block="consumer_stub_h">
30 #include "AutoTestServiceStub.h"
31 
32 // </rtc-template>
33 
34 using namespace RTC;
35 
43 {
44  public:
50 
54  ~AutoTestOut();
55 
56  // <rtc-template block="public_attribute">
57 
58  // </rtc-template>
59 
60  // <rtc-template block="public_operation">
61 
62  // </rtc-template>
63 
64  /***
65  *
66  * The initialize action (on CREATED->ALIVE transition)
67  * formaer rtc_init_entry()
68  *
69  * @return RTC::ReturnCode_t
70  *
71  *
72  */
73  virtual RTC::ReturnCode_t onInitialize();
74 
75  /***
76  *
77  * The finalize action (on ALIVE->END transition)
78  * formaer rtc_exiting_entry()
79  *
80  * @return RTC::ReturnCode_t
81  *
82  *
83  */
84  // virtual RTC::ReturnCode_t onFinalize();
85 
86  /***
87  *
88  * The startup action when ExecutionContext startup
89  * former rtc_starting_entry()
90  *
91  * @param ec_id target ExecutionContext Id
92  *
93  * @return RTC::ReturnCode_t
94  *
95  *
96  */
97  // virtual RTC::ReturnCode_t onStartup(RTC::UniqueId ec_id);
98 
99  /***
100  *
101  * The shutdown action when ExecutionContext stop
102  * former rtc_stopping_entry()
103  *
104  * @param ec_id target ExecutionContext Id
105  *
106  * @return RTC::ReturnCode_t
107  *
108  *
109  */
110  // virtual RTC::ReturnCode_t onShutdown(RTC::UniqueId ec_id);
111 
112  /***
113  *
114  * The activated action (Active state entry action)
115  * former rtc_active_entry()
116  *
117  * @param ec_id target ExecutionContext Id
118  *
119  * @return RTC::ReturnCode_t
120  *
121  *
122  */
123  virtual RTC::ReturnCode_t onActivated(RTC::UniqueId ec_id);
124 
125  /***
126  *
127  * The deactivated action (Active state exit action)
128  * former rtc_active_exit()
129  *
130  * @param ec_id target ExecutionContext Id
131  *
132  * @return RTC::ReturnCode_t
133  *
134  *
135  */
136  virtual RTC::ReturnCode_t onDeactivated(RTC::UniqueId ec_id);
137 
138  /***
139  *
140  * The execution action that is invoked periodically
141  * former rtc_active_do()
142  *
143  * @param ec_id target ExecutionContext Id
144  *
145  * @return RTC::ReturnCode_t
146  *
147  *
148  */
149  virtual RTC::ReturnCode_t onExecute(RTC::UniqueId ec_id);
150 
151  /***
152  *
153  * The aborting action when main logic error occurred.
154  * former rtc_aborting_entry()
155  *
156  * @param ec_id target ExecutionContext Id
157  *
158  * @return RTC::ReturnCode_t
159  *
160  *
161  */
162  // virtual RTC::ReturnCode_t onAborting(RTC::UniqueId ec_id);
163 
164  /***
165  *
166  * The error action in ERROR state
167  * former rtc_error_do()
168  *
169  * @param ec_id target ExecutionContext Id
170  *
171  * @return RTC::ReturnCode_t
172  *
173  *
174  */
175  // virtual RTC::ReturnCode_t onError(RTC::UniqueId ec_id);
176 
177  /***
178  *
179  * The reset action that is invoked resetting
180  * This is same but different the former rtc_init_entry()
181  *
182  * @param ec_id target ExecutionContext Id
183  *
184  * @return RTC::ReturnCode_t
185  *
186  *
187  */
188  // virtual RTC::ReturnCode_t onReset(RTC::UniqueId ec_id);
189 
190  /***
191  *
192  * The state update action that is invoked after onExecute() action
193  * no corresponding operation exists in OpenRTm-aist-0.2.0
194  *
195  * @param ec_id target ExecutionContext Id
196  *
197  * @return RTC::ReturnCode_t
198  *
199  *
200  */
201  // virtual RTC::ReturnCode_t onStateUpdate(RTC::UniqueId ec_id);
202 
203  /***
204  *
205  * The action that is invoked when execution context's rate is changed
206  * no corresponding operation exists in OpenRTm-aist-0.2.0
207  *
208  * @param ec_id target ExecutionContext Id
209  *
210  * @return RTC::ReturnCode_t
211  *
212  *
213  */
214  // virtual RTC::ReturnCode_t onRateChanged(RTC::UniqueId ec_id);
215 
216 
217  protected:
218  // <rtc-template block="protected_attribute">
219 
220  // </rtc-template>
221 
222  // <rtc-template block="protected_operation">
223 
224  // </rtc-template>
225 
226  // DataInPort declaration
227  // <rtc-template block="inport_declare">
228 
229  // </rtc-template>
230 
231 
232  // DataOutPort declaration
233  // <rtc-template block="outport_declare">
234  TimedFloat m_out;
238  TimedFloatSeq m_seqout;
242 
243  // </rtc-template>
244 
245  // CORBA Port declaration
246  // <rtc-template block="corbaport_declare">
250 
251  // </rtc-template>
252 
253  // Service declaration
254  // <rtc-template block="service_declare">
255 
256  // </rtc-template>
257 
258  // Consumer declaration
259  // <rtc-template block="consumer_declare">
263 
264  // </rtc-template>
265 
266  private:
267  std::ifstream fin;
268  // <rtc-template block="private_attribute">
269 
270  // </rtc-template>
271 
272  // <rtc-template block="private_operation">
273 
274  // </rtc-template>
275 
276 };
277 
278 
279 extern "C"
280 {
282 };
283 
284 #endif // AUTOTESTOUT_H
RT-Component.
TimedFloatSeq m_seqout
Definition: AutoTestOut.h:238
RT Conponent CORBA service/consumer Port.
Definition: CorbaPort.h:620
DataFlowComponentBase class.
ReturnCode_t
Definition: doil.h:53
Sample component for auto-test.
Definition: AutoTestOut.h:41
std::ifstream fin
Definition: AutoTestOut.h:267
Manager class.
Definition: Manager.h:80
Base class of OutPort.
CorbaPort class.
RTComponent manager class.
RTC::CorbaConsumer< AutoTest::MyService > m_myservice0
Definition: AutoTestOut.h:262
ExecutionContextHandle_t UniqueId
Base class of InPort.
#define DLL_EXPORT
Definition: PluginC.cpp:8
OutPort< TimedFloat > m_outOut
Definition: AutoTestOut.h:237
TimedFloat m_out
Definition: AutoTestOut.h:234
OutPort< TimedFloatSeq > m_seqoutOut
Definition: AutoTestOut.h:241
RTC::CorbaPort m_MyServicePort
Definition: AutoTestOut.h:249
DLL_EXPORT void AutoTestOutInit(RTC::Manager *manager)


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Jun 10 2019 14:07:50