UniSet  2.8.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 #ifndef DISABLE_REST_API
22  virtual void httpGetUserData( Poco::JSON::Object::Ptr& jdata ) override;
23 #endif
24  private:
25  bool bool_var = { false };
26  int int_var = {0};
27  uniset::timeout_t t_val = { 0 };
28 };
29 // -----------------------------------------------------------------------------
30 #endif // TestGen_H_
31 // -----------------------------------------------------------------------------
Definition: TestGen.h:7
Definition: MessageType.h:170
std::shared_ptr< Configuration > uniset_conf() noexcept
Definition: Configuration.cc:91
Definition: MessageType.h:126
Definition: MessageType.h:213
long ObjectId
Definition: UniSetTypes_i.idl:30