Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cLogFileTail.h
Go to the documentation of this file.
1 //
4 //
5 
6 #ifndef _INC_cLogFileTail_H
7 #define _INC_cLogFileTail_H
8 #ifndef NO_PRAGMA_ONCE
9 #pragma once
10 #endif
11 
12 #include "../GrayLibBase.h"
17 
18 namespace GrayLib
19 {
21  {
25 
26  public:
31  bool m_bReady;
32 
33  public:
34  cLogFileTail(cStringF sFilePath, STREAM_POS_t nPos=0);
35  virtual ~cLogFileTail();
36 
38  {
39  return m_sFilePath;
40  }
41  HRESULT ReadLogFile(cStreamOutput* pOut, size_t nPollSizeMax);
42  };
43 };
44 
45 #endif
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
Definition: cLogFileTail.h:21
bool m_bReady
Change Signaled or Assume data is ready now. Don't wait for event.
Definition: cLogFileTail.h:31
cStringF m_sFilePath
a full path to a log file to tail.
Definition: cLogFileTail.h:27
cTimeInt m_timeChange
Last Change to file.
Definition: cLogFileTail.h:29
cTimeInt m_timeLastCheck
Last check.
Definition: cLogFileTail.h:30
STREAM_POS_t m_nPos
last position read.
Definition: cLogFileTail.h:28
cStringF get_Name() const
Definition: cLogFileTail.h:37
Definition: cRefPtr.h:22
Definition: cStream.h:126
< similar to the MFC CTime and cTimeSpan, not as accurate or large ranged as COleDateTime
Definition: cTimeInt.h:101
Definition: cMesh.h:22
ULONG_PTR STREAM_POS_t
NOT same as FILE_SIZE_t in 32 bit. Why not ?
Definition: cOSHandle.h:54