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