29 lines
534 B
C++
29 lines
534 B
C++
#ifndef IFSFILE_H__
|
|||
|
|
#define IFSFILE_H__
|
||
|
|
|
||
|
|
//#include "IDataStream.h"
|
||
|
|
#include "../../LString.h"
|
||
|
|
#include "../IFile.h"
|
||
|
|
#include "IFSStream.h"
|
||
|
|
|
||
|
|
namespace LifeCore
|
||
|
|
{
|
||
|
|
class IFSFile : public IFile
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
IFSFile();
|
||
|
|
IFSFile(const String& path, int size);
|
||
|
|
~IFSFile(){}
|
||
|
|
String EntryName;
|
||
|
|
bool ReadAsync(char* buffer, size_t count_read);
|
||
|
|
IDataStreamPtr OpenWrite(int mode);
|
||
|
|
IDataStreamPtr OpenReadWrite(int mode);
|
||
|
|
IDataStreamPtr OpenRead();
|
||
|
|
void Close();
|
||
|
|
private:
|
||
|
|
int offsetIndex;
|
||
|
|
IFSStream* g_stream;
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
#endif
|