|
UniSet
2.2.1
|
00001 // ----------------------------------------------------------------------------- 00002 #ifndef TestProc_H_ 00003 #define TestProc_H_ 00004 // ----------------------------------------------------------------------------- 00005 #include <vector> 00006 #include "Debug.h" 00007 #include "TestProc_SK.h" 00008 // ----------------------------------------------------------------------------- 00009 class TestProc: 00010 public TestProc_SK 00011 { 00012 public: 00013 TestProc( UniSetTypes::ObjectId id, xmlNode* confnode = UniSetTypes::uniset_conf()->getNode("TestProc") ); 00014 virtual ~TestProc(); 00015 00016 protected: 00017 TestProc(); 00018 00019 enum Timers 00020 { 00021 tmChange, 00022 tmCheckWorking, 00023 tmCheck, 00024 tmLogControl 00025 }; 00026 00027 virtual void step(); 00028 virtual void sensorInfo( const UniSetTypes::SensorMessage* sm ); 00029 virtual void timerInfo( const UniSetTypes::TimerMessage* tm ); 00030 virtual void sysCommand( const UniSetTypes::SystemMessage* sm ); 00031 00032 void test_depend(); 00033 void test_undefined_state(); 00034 void test_thresholds(); 00035 void test_loglevel(); 00036 00037 private: 00038 bool state; 00039 bool undef; 00040 00041 std::vector<Debug::type> loglevels; 00042 std::vector<Debug::type>::iterator lit; 00043 }; 00044 // ----------------------------------------------------------------------------- 00045 #endif // TestProc_H_ 00046 // -----------------------------------------------------------------------------
1.7.6.1