|
UniSet
2.6.0
|
00001 // ----------------------------------------------------------------------------- 00002 #ifndef TestGen_H_ 00003 #define TestGen_H_ 00004 // ----------------------------------------------------------------------------- 00005 #include "TestGen_SK.h" 00006 // ----------------------------------------------------------------------------- 00007 class TestGen: 00008 public TestGen_SK 00009 { 00010 public: 00011 TestGen( uniset::ObjectId id, xmlNode* confnode = uniset::uniset_conf()->getNode("TestGen") ); 00012 virtual ~TestGen(); 00013 00014 protected: 00015 TestGen(); 00016 00017 virtual void step() override; 00018 virtual void sensorInfo( const uniset::SensorMessage* sm ) override; 00019 virtual void timerInfo( const uniset::TimerMessage* tm ) override; 00020 virtual void sysCommand( const uniset::SystemMessage* sm ) override; 00021 virtual void sigterm( int signo ) override; 00022 #ifndef DISABLE_REST_API 00023 virtual void httpGetUserData( Poco::JSON::Object::Ptr& jdata ) override; 00024 #endif 00025 private: 00026 bool bool_var = { false }; 00027 int int_var = {0}; 00028 uniset::timeout_t t_val = { 0 }; 00029 }; 00030 // ----------------------------------------------------------------------------- 00031 #endif // TestGen_H_ 00032 // -----------------------------------------------------------------------------
1.7.6.1