Lhaz
lhazerr.h
[詳解]
1 /*==========================================================================*/
2 /* Lhaz Error class chitora48@gmail.com */
3 /*==========================================================================*/
4 #pragma once
5 
6 #include "altstr.hpp"
7 #include <tchar.h>
8 #include <Windows.h>
9 
10 class LHAZERR {
11 
12 public:
14  enum MODE { EXTRACT, TEST };
15  //
16  LHAZERR(HWND hwnd) :
17  m_hwnd (hwnd),
18  m_type (NON),
19  m_mode (EXTRACT),
20  m_name ()
21  {
22  }
23  LHAZERR(HWND hwnd, TYPE type, const WSTR& name = _T(""), MODE mode = EXTRACT) :
24  m_hwnd (hwnd),
25  m_type (type),
26  m_mode (mode),
27  m_name (name)
28  {
29  }
30  LHAZERR(HWND hwnd, const LHAZERR& e) :
31  m_hwnd (hwnd),
32  m_type (e.m_type),
33  m_mode (e.m_mode),
34  m_name (e.m_name)
35  {
36  }
38  }
39  const TCHAR* GetName() {
40  return m_name.CStr();
41  }
42  void SetName(const WSTR& name) {
43  m_name = name;
44  }
45  TYPE GetType() { return m_type; }
46  void Do(bool do_delete);
47 
48 private:
49  HWND m_hwnd;
52  WSTR m_name;
53 
54 };
LHAZERR(HWND hwnd)
Definition: lhazerr.h:16
WSTR m_name
Definition: lhazerr.h:52
void SetName(const WSTR &name)
Definition: lhazerr.h:42
Definition: lhazerr.h:13
void Do(bool do_delete)
Definition: lhazerr.cpp:11
Definition: lhazerr.h:13
Definition: lhazerr.h:13
TYPE m_type
Definition: lhazerr.h:50
TYPE GetType()
Definition: lhazerr.h:45
Definition: lhazerr.h:10
Definition: lhazerr.h:13
Definition: lhazerr.h:14
MODE m_mode
Definition: lhazerr.h:51
Definition: lhazerr.h:14
‾LHAZERR()
Definition: lhazerr.h:37
TYPE
Definition: lhazerr.h:13
const TCHAR * GetName()
Definition: lhazerr.h:39
LHAZERR(HWND hwnd, TYPE type, const WSTR &name=_T(""), MODE mode=EXTRACT)
Definition: lhazerr.h:23
LHAZERR(HWND hwnd, const LHAZERR &e)
Definition: lhazerr.h:30
Definition: lhazerr.h:13
MODE
Definition: lhazerr.h:14
HWND m_hwnd
Definition: lhazerr.h:49
Definition: lhazerr.h:13
Definition: lhazerr.h:13