IOBase.h 452 B

1234567891011121314151617181920212223
  1. #pragma once
  2. class CIOBase
  3. {
  4. public:
  5. CIOBase(void);
  6. ~CIOBase(void);
  7. public:
  8. enum origin{
  9. CURRENT,
  10. END,
  11. BEGIN,
  12. };
  13. virtual void OpenFile(){}
  14. virtual long ReadFile(void* buf, long size){return -1;}
  15. virtual void WriteFile(const void* buf, long size){}
  16. virtual long TellFile(){return 0;}
  17. virtual void SeekFile(long offset,int origin){}
  18. virtual void CloseFile(){}
  19. virtual long Error(){return 0;}
  20. protected:
  21. void * m_pzlib_filefunc_def;
  22. };