DummyModule.cpp
Go to the documentation of this file.
00001 #include <rtm/DataFlowComponentBase.h>
00002 #include "DummyModule.h"
00003 
00004 namespace RTC
00005 {
00006 
00007 class Manager;
00008 
00009 class DummyModule
00010   : public RTC::DataFlowComponentBase
00011 {
00012 public:
00013         DummyModule(RTC::Manager* manager)
00014             : RTC::DataFlowComponentBase(manager)
00015         {
00016         };
00017         ~DummyModule(){};
00018  
00019         static void InitProc(Manager* manager) { m_counter++; }
00020         static int getInitProcCount() { return m_counter; }
00021         static void resetInitProcCount() { m_counter = 0; }
00022         
00023 private:
00024         static int m_counter;
00025 };
00026 int DummyModule::m_counter = 0;
00027 
00028 void InitProc(Manager* manager)
00029 {
00030         DummyModule::InitProc(manager);
00031 }
00032 
00033 int getInitProcCount()
00034 {
00035         return DummyModule::getInitProcCount();
00036 }
00037 
00038 void resetInitProcCount()
00039 {
00040         DummyModule::resetInitProcCount();
00041 }
00042 
00043 };
00044 
00045 static const char* dummy_spec[] =
00046   {
00047     "implementation_id", "Dummy",
00048     "type_name",         "Dummy",
00049     "description",       "",
00050     "version",           "",
00051     "vendor",            "",
00052     "category",          "",
00053     "activity_type",     "",
00054     "max_instance",      "10",
00055     "language",          "C++",
00056     "lang_type",         "compile",
00057     ""
00058   };
00059 
00060 extern "C"
00061 {
00062  
00063   void DummyModuleInit(RTC::Manager* manager)
00064   {
00065     RTC::Properties profile(dummy_spec);
00066     manager->registerFactory(profile,
00067                              RTC::Create<RTC::DummyModule>,
00068                              RTC::Delete<RTC::DummyModule>);
00069   }
00070   
00071 };


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