-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLog.H
More file actions
83 lines (63 loc) · 1.4 KB
/
Copy pathLog.H
File metadata and controls
83 lines (63 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// File: Log.H
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Classes Reference and related electronic
// documentation provided with the library.
// See these sources for detailed information regarding the
// Microsoft C++ Libraries products.
class CTestContainer98Item;
class CLog :
public CObject
{
DECLARE_DYNAMIC( CLog );
public:
CLog();
~CLog();
CLog& operator<<( COleVariant& var );
CLog& operator<<( int n );
virtual CLog& operator<<( LPCTSTR pszString ) = NULL;
};
class CNullLog :
public CLog
{
DECLARE_DYNAMIC( CNullLog );
public:
CNullLog();
~CNullLog();
CLog& operator<<( LPCTSTR pszString );
};
class CDebugLog : public CLog
{
DECLARE_DYNAMIC( CDebugLog );
public:
CDebugLog();
~CDebugLog();
CLog& operator<<( LPCTSTR pszString );
protected:
BOOL m_tStartOfLine;
};
class CFileLog :
public CLog
{
DECLARE_DYNAMIC( CFileLog );
public:
CFileLog();
~CFileLog();
CLog& operator<<( LPCTSTR pszString );
public:
BOOL Create( LPCTSTR pszFileName );
CString GetFileName() const;
protected:
CStdioFile m_file;
};
class COutputWindowLog : public CLog
{
DECLARE_DYNAMIC( COutputWindowLog );
public:
COutputWindowLog( CEdit* pEditBox );
~COutputWindowLog();
CLog& operator<<( LPCTSTR pszString );
protected:
CEdit* m_pEditBox;
};