UniSet  2.6.0
TestGen.h
1 // -----------------------------------------------------------------------------
2 #ifndef TestGen_H_
3 #define TestGen_H_
4 // -----------------------------------------------------------------------------
5 #include "TestGen_SK.h"
6 // -----------------------------------------------------------------------------
7 class TestGen:
8  public TestGen_SK
9 {
10  public:
11  TestGen( uniset::ObjectId id, xmlNode* confnode = uniset::uniset_conf()->getNode("TestGen") );
12  virtual ~TestGen();
13 
14  protected:
15  TestGen();
16 
17  virtual void step() override;
18  virtual void sensorInfo( const uniset::SensorMessage* sm ) override;
19  virtual void timerInfo( const uniset::TimerMessage* tm ) override;
20  virtual void sysCommand( const uniset::SystemMessage* sm ) override;
21  virtual void sigterm( int signo ) override;
22 #ifndef DISABLE_REST_API
23  virtual void httpGetUserData( Poco::JSON::Object::Ptr& jdata ) override;
24 #endif
25  private:
26  bool bool_var = { false };
27  int int_var = {0};
28  uniset::timeout_t t_val = { 0 };
29 };
30 // -----------------------------------------------------------------------------
31 #endif // TestGen_H_
32 // -----------------------------------------------------------------------------
Definition: TestGen.h:7
Definition: MessageType.h:166
std::shared_ptr< Configuration > uniset_conf() noexcept
Definition: Configuration.cc:89
Definition: MessageType.h:122
Definition: MessageType.h:209
long ObjectId
Definition: UniSetTypes_i.idl:30