PackFileBaseClass.h
资源名称:DXGuide.zip [点击查看]
上传用户:wymy58
上传日期:2007-01-07
资源大小:2086k
文件大小:1k
源码类别:
DirextX编程
开发平台:
Visual C++
- // Copyright (C) 1999 DXGuide. All Rights Reserved.
- // File: PackFileBaseClass.h
- #ifndef _PACKFILEBASECLASS__H
- #define _PACKFILEBASECLASS__H
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- class CPackFileManagerBaseClass;
- class CPackFileBaseClass
- {
- public:
- CPackFileBaseClass(void);
- virtual ~CPackFileBaseClass();
- public:
- virtual bool Open(CPackFileManagerBaseClass* pPackFileManager, LPCTSTR lpszName);
- public:
- virtual int Read(LPVOID pBuf, int nSize) = 0;
- virtual LONG Seek(LONG lOff, CFile::SeekPosition seekPos = CFile::begin) = 0;
- virtual LONG Tell(void) const = 0;
- virtual LONG GetFileSize(void) const = 0;
- virtual CString GetFileName(void) const = 0;
- public:
- BYTE const* GetBuffer(void);
- void ReleaseBuffer(void) const;
- public:
- #ifdef _DEBUG
- CPackFileManagerBaseClass* const GetPackFileManager(void) const
- {
- return m_pParentPackFileManager;
- }
- #endif // _DEBUG
- protected:
- CPackFileManagerBaseClass* m_pParentPackFileManager;
- };
- #endif // _PACKFILEBASECLASS__H