home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Game Audio Programming
/
GameAudioProgramming.iso
/
Game_Audio
/
audio_sdk
/
src
/
AudioLib
/
IGameFile.h
< prev
next >
Wrap
C/C++ Source or Header
|
2002-09-04
|
561b
|
30 lines
#ifndef IGAMEFILE_H__
#define IGAMEFILE_H__
namespace Audio
{
// Wrapper class for ease of handling files.
class IGameFile
{
public:
IGameFile() {}
virtual ~IGameFile() {}
bool Open(std::string sFileName);
void Close();
virtual bool operator !() = 0;
virtual uint32 GetSize() = 0;
virtual uint8* GetData() = 0;
virtual bool Read() = 0;
virtual bool Read(uint8* pBuffer, uint32 nSize) = 0;
virtual bool GetFileInfo(std::string& sFileName, uint32& nOffset) = 0;
};
}; // namespace Audio
#endif // IGAMEFILE_H__