UniSet  2.8.0
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 // -----------------------------------------------------------------------------
9 class 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: MessageType.h:170
Definition: MBSlaveTest/TestProc_SK.h:28
std::shared_ptr< Configuration > uniset_conf() noexcept
Definition: Configuration.cc:91
Definition: MessageType.h:126
Definition: MBSlaveTest/TestProc.h:10
Definition: MessageType.h:213
xmlNode * confnode
Definition: MBSlaveTest/TestProc_SK.h:264
virtual std::string getMonitInfo() const override
Definition: SMemoryTest/TestProc.cc:54
long ObjectId
Definition: UniSetTypes_i.idl:30