1234567891011121314151617181920212223 |
- #pragma once
- class CIOBase
- {
- public:
- CIOBase(void);
- ~CIOBase(void);
- public:
- enum origin{
- CURRENT,
- END,
- BEGIN,
- };
- virtual void OpenFile(){}
- virtual long ReadFile(void* buf, long size){return -1;}
- virtual void WriteFile(const void* buf, long size){}
- virtual long TellFile(){return 0;}
- virtual void SeekFile(long offset,int origin){}
- virtual void CloseFile(){}
- virtual long Error(){return 0;}
- protected:
- void * m_pzlib_filefunc_def;
- };
|