UniSet  2.2.1
TestObject.h
00001 #ifndef _TestObject_H_
00002 #define _TestObject_H_
00003 // -----------------------------------------------------------------------------
00004 #include "TestObject_SK.h"
00005 // -----------------------------------------------------------------------------
00006 class TestObject:
00007     public TestObject_SK
00008 {
00009     public:
00010         TestObject( UniSetTypes::ObjectId objId, xmlNode* cnode );
00011         virtual ~TestObject();
00012 
00013         void askDoNotNotify();
00014         void askNotifyChange();
00015         void askNotifyFirstNotNull();
00016 
00017         inline bool getEvnt()
00018         {
00019             return evntIsOK;
00020         }
00021 
00022         void stopHeartbeat();
00023         void runHeartbeat( int max = 3 );
00024 
00025         inline timeout_t getHeartbeatTime()
00026         {
00027             return ptHeartBeat.getInterval();
00028         }
00029 
00030     protected:
00031         TestObject();
00032 
00033         virtual void sysCommand( const UniSetTypes::SystemMessage* sm ) override;
00034 
00035     private:
00036         bool evntIsOK = { false };
00037 };
00038 // -----------------------------------------------------------------------------
00039 #endif // _TestObject_H_
00040 // -----------------------------------------------------------------------------