UniSet  2.6.0
TestProc.h
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( uniset::ObjectId id, xmlNode* confnode = uniset::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 uniset::SensorMessage* sm ) override;
00029         virtual void timerInfo( const uniset::TimerMessage* tm ) override;
00030         virtual void sysCommand( const uniset::SystemMessage* sm ) override;
00031         virtual std::string getMonitInfo() override;
00032 
00033         void test_depend();
00034         void test_undefined_state();
00035         void test_thresholds();
00036         void test_loglevel();
00037 
00038     private:
00039         bool state = { false };
00040         bool undef = { false };
00041 
00042         std::vector<Debug::type> loglevels;
00043         std::vector<Debug::type>::iterator lit;
00044 };
00045 // -----------------------------------------------------------------------------
00046 #endif // TestProc_H_
00047 // -----------------------------------------------------------------------------