PackFileManagerBaseClass.h
资源名称:DXGuide.zip [点击查看]
上传用户:wymy58
上传日期:2007-01-07
资源大小:2086k
文件大小:1k
源码类别:
DirextX编程
开发平台:
Visual C++
- // Copyright (C) 1999 DXGuide. All Rights Reserved.
- // File: PackFileManagerBaseClass.h
- #ifndef _PACKFILEMANAGERBASECLASS__H
- #define _PACKFILEMANAGERBASECLASS__H
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- enum PackFileManagerType;
- class CPackFileManagerBaseClass
- {
- friend class CPackFileBaseClass;
- public:
- CPackFileManagerBaseClass(void);
- virtual ~CPackFileManagerBaseClass();
- public:
- virtual bool Load(LPCTSTR lpszName, bool bResource) = 0;
- virtual DWORD GetFileEntries(void) const = 0;
- virtual PackFileManagerType GetPackFileManagerType(void) const = 0;
- public:
- virtual BYTE const* GetBuffer(CPackFileBaseClass* pPackFile);
- virtual void ReleaseBuffer(void);
- protected:
- virtual bool GetFileEntryInfo(LPCTSTR lpszName, CPackFileBaseClass* pFileEntry) const = 0;
- #ifdef _DEBUG
- public:
- ULONG m_ulPackFileCounter;
- #endif // _DEBUG
- protected:
- BYTE* m_pTempBuffer;
- };
- #endif // _PACKFILEMANAGERBASECLASS__H