DirectoryFile.h
资源名称:DXGuide.zip [点击查看]
上传用户:wymy58
上传日期:2007-01-07
资源大小:2086k
文件大小:1k
源码类别:
DirextX编程
开发平台:
Visual C++
- // Copyright (C) 1999 DXGuide. All Rights Reserved.
- // File: DirectoryFile.h
- #ifndef _DIRECTORYFILE__H
- #define _DIRECTORYFILE__H
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- #include "PackFileBaseClass.h"
- class CDirectoryFile : public CPackFileBaseClass
- {
- friend class CDirectoryFileManager;
- public:
- CDirectoryFile(void);
- virtual ~CDirectoryFile();
- 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:
- CFile* m_pFile;
- };
- #endif // _DIRECTORYFILE__H