Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cLogThread.h
Go to the documentation of this file.
1 //
4 //
5 
6 #ifndef _INC_cLogThread_H
7 #define _INC_cLogThread_H
8 #ifndef NO_PRAGMA_ONCE
9 #pragma once
10 #endif
11 
12 #include "cThread.h"
13 #include "cSysEvent.h"
18 
19 namespace GrayLib
20 {
22 
24  : public cLogNexus
25  , public cLogAppender
26  , public cThreadNamed<cLogThread>
27  {
32 
34 
35  private:
37  cSysEvent m_Ready;
39 
40  protected:
41  virtual void WakeThread() override;
42  virtual bool ThreadTick() override; //
43 
44  public:
45  cLogThread(void);
46  virtual ~cLogThread(void);
47 
48  STDMETHOD_(cString, get_Name)() const override
49  {
50  return _GT("LogThread");
51  }
52 
53  virtual HRESULT addEvent(cLogEvent* pEvent) override;
54  virtual HRESULT FlushLogs() override;
55 
58  };
59 };
60 
61 #endif // _INC_cLogThread_H
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
#define _GT(x)
like _T(x) macro for static text.
Definition: StrConst.h:27
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
Definition: cLogThread.h:27
UNITTEST_FRIEND(cLogThread)
STDMETHOD_(cString, get_Name)() const override
Definition: cLogThread.h:48
IUNKNOWN_DISAMBIG(cRefBase)
Definition: cSysEvent.h:28
Definition: cThread.h:256
Definition: cLogAppender.h:257
Definition: cLogEvent.h:18
Definition: cLogMgr.h:52
Definition: cRefPtr.h:22
Definition: cThreadArray.h:96
Definition: cMesh.h:22
UNITTEST2_PREDEF(cQuadtree)