My Project
OSWindows.h
1 #pragma once
2 #include "NPLMessageQueue.h"
3 #include <string>
4 
5 namespace ParaEngine
6 {
8  class COSInfo
9  {
10  public:
11  static BOOL GetOSDisplayString( LPTSTR pszOS);
12 
14  static void DumpSystemInfo();
15 
17  static DWORD GetOSMajorVersion();
18 
23  static const std::string& GetSystemInfoString(bool bRefresh = false);
24  };
25 
27  struct CWinRawMsg :
28  public ParaEngine::PoolBase<CWinRawMsg>,
30  {
31  CWinRawMsg(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
32  : m_hWnd(hWnd), m_uMsg(uMsg), m_wParam(wParam), m_lParam(lParam), m_nID(0) {}
33  CWinRawMsg(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, int nID)
34  : m_hWnd(hWnd), m_uMsg(uMsg), m_wParam(wParam), m_lParam(lParam), m_nID(nID) {}
35  CWinRawMsg(){};
36 
37  virtual ~CWinRawMsg(){};
38 
39  // optional ID to identify the message for its sender, etc.
40  int m_nID;
41 
42  HWND m_hWnd;
43  UINT m_uMsg;
44  WPARAM m_wParam;
45  LPARAM m_lParam;
46  };
47  typedef ParaIntrusivePtr<CWinRawMsg> CWinRawMsg_ptr;
48 
53  class CWinRawMsgQueue : public NPL::concurrent_ptr_queue<CWinRawMsg_ptr>
54  {
55  public:
57  CWinRawMsgQueue(int capacity);
58  ~CWinRawMsgQueue();
59  };
60 
61 }
static void DumpSystemInfo()
dump os info to log
Definition: OSWindows.cpp:265
it implements a producer/consumer(s) queue design pattern.
Definition: NPLMessageQueue.h:26
different physics engine has different winding order.
Definition: EventBinding.h:32
static const std::string & GetSystemInfoString(bool bRefresh=false)
fetch OS information string.
Definition: OSWindows.cpp:289
multi-threaded reference counted base class for boost::intrusive_ptr all boost::intrusive_ptr<T>, should derive from this class.
Definition: intrusive_ptr.h:47
raw win32 message
Definition: OSWindows.h:27
if one wants to create and delete many objects of the same type per frame, derive your class from Poo...
Definition: PoolBase.h:60
the message queue.
Definition: OSWindows.h:53
operating system info
Definition: OSWindows.h:8
static DWORD GetOSMajorVersion()
Definition: OSWindows.cpp:271