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


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Aug 27 2015 14:16:37