UniSet 2.32.1
SMemoryTest/TestProc.h
1// -----------------------------------------------------------------------------
2#ifndef TestProc_H_
3#define TestProc_H_
4// -----------------------------------------------------------------------------
5#include <vector>
6#include "Debug.h"
7#include "TestProc_SK.h"
8// -----------------------------------------------------------------------------
9class TestProc:
10 public TestProc_SK
11{
12 public:
13 TestProc( uniset::ObjectId id, xmlNode* confnode = uniset::uniset_conf()->getNode("TestProc") );
14 virtual ~TestProc();
15
16 protected:
17 TestProc();
18
19 enum Timers
20 {
21 tmChange,
22 tmCheckWorking,
23 tmCheck,
24 tmLogControl
25 };
26
27 virtual void step() override;
28 virtual void sensorInfo( const uniset::SensorMessage* sm ) override;
29 virtual void timerInfo( const uniset::TimerMessage* tm ) override;
30 virtual void sysCommand( const uniset::SystemMessage* sm ) override;
31 virtual std::string getMonitInfo() const override;
32
33 void test_depend();
34 void test_undefined_state();
35 void test_thresholds();
36 void test_loglevel();
37
38 private:
39 bool state = { false };
40 bool undef = { false };
41
42 std::vector<Debug::type> loglevels;
43 std::vector<Debug::type>::iterator lit;
44};
45// -----------------------------------------------------------------------------
46#endif // TestProc_H_
47// -----------------------------------------------------------------------------
Definition MBSlaveTest/TestProc_SK.h:30
xmlNode * confnode
Definition MBSlaveTest/TestProc_SK.h:266
Definition MBSlaveTest/TestProc.h:12
virtual std::string getMonitInfo() const override
Definition SMemoryTest/TestProc.cc:54
Definition MessageType.h:127
Definition MessageType.h:171
Definition MessageType.h:214
std::shared_ptr< Configuration > uniset_conf() noexcept
Definition Configuration.cc:90
long ObjectId
Definition UniSetTypes_i.idl:30