www.pudn.com > 3DEDITOR.rar > CHUNKFILE.H
// ChunkFile.h: interface for the ChunkFile class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_CHUNKFILE_H__D9478612_7A19_11D1_9E1C_004F4902C0C3__INCLUDED_)
#define AFX_CHUNKFILE_H__D9478612_7A19_11D1_9E1C_004F4902C0C3__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
class ChunkFile
{
public:
unsigned short Id;
ChunkFile(CFile *);
virtual ~ChunkFile();
UINT Read(void *, UINT);
void Write(const void *, UINT);
void Open(unsigned short);
void Close();
void ReadHeader();
void Next();
bool End();
protected:
CFile *fp;
signed char nc;
unsigned long SizeI[10];
unsigned long PositionI[10];
unsigned long resto();
};
#endif // !defined(AFX_CHUNKFILE_H__D9478612_7A19_11D1_9E1C_004F4902C0C3__INCLUDED_)