Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
cHeartbeatFile.h
Go to the documentation of this file.
1 //
4 //
5 #ifndef _INC_cHeartbeatFile_H
6 #define _INC_cHeartbeatFile_H
7 #ifndef NO_PRAGMA_ONCE
8 #pragma once
9 #endif
10 
11 #include "../GrayLibBase.h"
12 #include "GrayCore/include/cFile.h"
14 
15 namespace GrayLib
16 {
18  {
23 
24  public:
27 
28  public:
29  cHeartbeatFile(cStringF sFilePath = "");
30  virtual ~cHeartbeatFile(void);
31 
32  cStringF get_HeartbeatFilePath() const;
33  HRESULT GetHeartbeatTimeLast(OUT cTimeInt& rTimeLastBeat) const;
34  HRESULT DoBeat(TIMESECD_t tThrottleSeconds = 1);
35 
37  };
38 };
39 
40 #endif // _INC_cHeartbeatFile_H
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
Definition: cHeartbeatFile.h:18
const cStringF m_sFilePath
full path for the heartbeat file.
Definition: cHeartbeatFile.h:25
UNITTEST_FRIEND(cHeartbeatFile)
cTimeInt m_tLastBeat
Last recorded heartbeat success. For throttling.
Definition: cHeartbeatFile.h:26
Definition: cFile.h:137
< similar to the MFC CTime and cTimeSpan, not as accurate or large ranged as COleDateTime
Definition: cTimeInt.h:101
Definition: cMesh.h:22
int TIMESECD_t
signed delta seconds. like TIMESEC_t. redefined in TimeUnits.h.
Definition: cTimeSys.h:19