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
10class LHAZERR {
11
12public:
14 enum MODE { EXTRACT, TEST };
15 //
16 LHAZERR(HWND hwnd) :
17 m_hwnd (hwnd),
18 m_type (NON),
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
48private:
49 HWND m_hwnd;
52 WSTR m_name;
53
54};
Definition lhazerr.h:10
‾LHAZERR()
Definition lhazerr.h:37
TYPE
Definition lhazerr.h:13
@ ARC_BROKEN
Definition lhazerr.h:13
@ NON
Definition lhazerr.h:13
@ PASS_ERROR
Definition lhazerr.h:13
@ HUF_BROKEN
Definition lhazerr.h:13
@ PASS_ERROR2
Definition lhazerr.h:13
@ STOP
Definition lhazerr.h:13
@ CANTOPEN
Definition lhazerr.h:13
WSTR m_name
Definition lhazerr.h:52
const TCHAR * GetName()
Definition lhazerr.h:39
LHAZERR(HWND hwnd, const LHAZERR &e)
Definition lhazerr.h:30
void SetName(const WSTR &name)
Definition lhazerr.h:42
TYPE m_type
Definition lhazerr.h:50
HWND m_hwnd
Definition lhazerr.h:49
LHAZERR(HWND hwnd, TYPE type, const WSTR &name=_T(""), MODE mode=EXTRACT)
Definition lhazerr.h:23
MODE m_mode
Definition lhazerr.h:51
MODE
Definition lhazerr.h:14
@ EXTRACT
Definition lhazerr.h:14
@ TEST
Definition lhazerr.h:14
LHAZERR(HWND hwnd)
Definition lhazerr.h:16
void Do(bool do_delete)
Definition lhazerr.cpp:11
TYPE GetType()
Definition lhazerr.h:45