LOG.H
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:1k
源码类别:
Windows编程
开发平台:
Visual C++
- 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;
- };