StringOut.h
Go to the documentation of this file.
1 // -*- C++ -*-
10 #ifndef __STRINGOUT_h__
11 #define __STRINGOUT_h__
12 
13 
14 #include <rtm/RtcBase.h>
15 #include <rtm/RtcManager.h>
16 #include <rtm/RtcInPort.h>
17 #include <rtm/RtcOutPort.h>
18 
19 using namespace RTM;
20 
21 static RtcModuleProfSpec stringout_spec[] =
22  {
23 
24  {RTC_MODULE_NAME, "StringOut"},
25  {RTC_MODULE_DESC, "Sample string out component"},
26  {RTC_MODULE_VERSION, "0.1"},
27  {RTC_MODULE_AUTHOR, "DrSample"},
28  {RTC_MODULE_CATEGORY, "Generic"},
29  {RTC_MODULE_COMP_TYPE, "COMMUTATIVE"},
30  {RTC_MODULE_ACT_TYPE, "SPORADIC"},
31  {RTC_MODULE_MAX_INST, "10"},
32  {RTC_MODULE_LANG, "C++"},
33  {RTC_MODULE_LANG_TYPE, "COMPILE"},
34  {RTC_MODULE_SPEC_END, NULL}
35  };
36 
37 
38 
39 class StringOut
40  : public RTM::RtcBase
41 {
42  public:
43  StringOut(RtcManager* manager);
44 
45  // [Initializing state]
46  // virtual RtmRes rtc_init_entry();
47 
48  // [Ready state]
49  // virtual RtmRes rtc_ready_entry();
50  // virtual RtmRes rtc_ready_do();
51  // virtual RtmRes rtc_ready_exit();
52 
53  // [Starting state]
54  // virtual RtmRes rtc_starting_entry();
55 
56  // [Active state]
57  // virtual RtmRes rtc_active_entry();
58  virtual RtmRes rtc_active_do();
59  // virtual RtmRes rtc_active_exit();
60 
61  // [Stopping state]
62  // virtual RtmRes rtc_stopping_entry();
63 
64  // [Aborting state]
65  // virtual RtmRes rtc_aborting_entry();
66 
67  // [Error state]
68  // virtual RtmRes rtc_error_entry();
69  // virtual RtmRes rtc_error_do();
70  // virtual RtmRes rtc_error_exit();
71 
72  // [Fatal Error state]
73  // virtual RtmRes rtc_fatal_entry();
74  // virtual RtmRes rtc_fatal_do();
75  // virtual RtmRes rtc_fatal_exit();
76 
77  // [Exiting state]
78  // virtual RtmRes rtc_exiting_entry();
79 
80  TimedString m_string_out;
81  OutPortAny<TimedString> m_string_outOut;
82 
83 };
84 
85 
86 extern "C" {
87  RtcBase* StringOutNew(RtcManager* manager);
88  void StringOutDelete(RtcBase* p);
89  void StringOutInit(RtcManager* manager);
90 };
91 #endif // __STRINGOUT_h__
92 
OutPortAny< TimedString > m_string_outOut
Definition: StringOut.h:81
void StringOutDelete(RtcBase *p)
Definition: StringOut.cpp:193
static RtcModuleProfSpec stringout_spec[]
Definition: StringOut.h:21
TimedString m_string_out
Definition: StringOut.h:80
RtcBase * StringOutNew(RtcManager *manager)
Definition: StringOut.cpp:187
RT-Middleware.
Definition: Manager.h:38
void StringOutInit(RtcManager *manager)
Definition: StringOut.cpp:200
RTObject_impl RtcBase
Definition: Manager.h:55


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