StringIn.h
Go to the documentation of this file.
00001 // -*- C++ -*-
00010 #ifndef __STRINGIN_h__
00011 #define __STRINGIN_h__
00012 
00013 
00014 #include <rtm/RtcBase.h>
00015 #include <rtm/RtcManager.h>
00016 #include <rtm/RtcInPort.h>
00017 #include <rtm/RtcOutPort.h>
00018 
00019 using namespace RTM;
00020 
00021 static RtcModuleProfSpec stringin_spec[] =
00022   {
00023   
00024   {RTC_MODULE_NAME, "StringIn"},
00025   {RTC_MODULE_DESC, "Sample string in component"},
00026   {RTC_MODULE_VERSION, "0.1"},
00027   {RTC_MODULE_AUTHOR, "DrSample"},
00028   {RTC_MODULE_CATEGORY, "Generic"},
00029   {RTC_MODULE_COMP_TYPE, "COMMUTATIVE"},
00030   {RTC_MODULE_ACT_TYPE, "SPORADIC"},
00031   {RTC_MODULE_MAX_INST, "10"},
00032   {RTC_MODULE_LANG, "C++"},
00033   {RTC_MODULE_LANG_TYPE, "COMPILE"},
00034   {RTC_MODULE_SPEC_END, NULL}
00035   };
00036 
00037 
00038         
00039 class StringIn
00040   : public RTM::RtcBase
00041 {
00042  public:
00043   StringIn(RtcManager* manager);
00044 
00045   // [Initializing state]
00046   //  virtual RtmRes rtc_init_entry();
00047 
00048   // [Ready state]
00049   //  virtual RtmRes rtc_ready_entry();
00050   //  virtual RtmRes rtc_ready_do();
00051   //  virtual RtmRes rtc_ready_exit();
00052 
00053   // [Starting state]
00054   //  virtual RtmRes rtc_starting_entry();
00055   
00056   // [Active state]
00057   //  virtual RtmRes rtc_active_entry();
00058   virtual RtmRes rtc_active_do();
00059   //  virtual RtmRes rtc_active_exit();
00060 
00061   // [Stopping state]
00062   //  virtual RtmRes rtc_stopping_entry();
00063 
00064   // [Aborting state]
00065   //  virtual RtmRes rtc_aborting_entry();
00066   
00067   // [Error state]
00068   //  virtual RtmRes rtc_error_entry();
00069   //  virtual RtmRes rtc_error_do();
00070   //  virtual RtmRes rtc_error_exit();
00071 
00072   // [Fatal Error state]
00073   //  virtual RtmRes rtc_fatal_entry();
00074   //  virtual RtmRes rtc_fatal_do();
00075   //  virtual RtmRes rtc_fatal_exit();
00076   
00077   // [Exiting state]
00078   //  virtual RtmRes rtc_exiting_entry();
00079 
00080   TimedString m_string_in;
00081   InPortAny<TimedString> m_string_inIn;
00082 
00083 };
00084 
00085 
00086 extern "C" {
00087   RtcBase* StringInNew(RtcManager* manager);
00088   void StringInDelete(RtcBase* p);
00089   void StringInInit(RtcManager* manager);
00090 };
00091 #endif // __STRINGIN_h__
00092 


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Sat Jun 8 2019 18:49:07