StringIn.h
Go to the documentation of this file.
1 // -*- C++ -*-
10 #ifndef __STRINGIN_h__
11 #define __STRINGIN_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 stringin_spec[] =
22  {
23 
24  {RTC_MODULE_NAME, "StringIn"},
25  {RTC_MODULE_DESC, "Sample string in 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 StringIn
40  : public RTM::RtcBase
41 {
42  public:
43  StringIn(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_in;
81  InPortAny<TimedString> m_string_inIn;
82 
83 };
84 
85 
86 extern "C" {
87  RtcBase* StringInNew(RtcManager* manager);
88  void StringInDelete(RtcBase* p);
89  void StringInInit(RtcManager* manager);
90 };
91 #endif // __STRINGIN_h__
92 
static RtcModuleProfSpec stringin_spec[]
Definition: StringIn.h:21
RtcBase * StringInNew(RtcManager *manager)
Definition: StringIn.cpp:186
TimedString m_string_in
Definition: StringIn.h:80
void StringInDelete(RtcBase *p)
Definition: StringIn.cpp:192
InPortAny< TimedString > m_string_inIn
Definition: StringIn.h:81
RT-Middleware.
Definition: Manager.h:38
void StringInInit(RtcManager *manager)
Definition: StringIn.cpp:199
RTObject_impl RtcBase
Definition: Manager.h:55


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