1
0

filereaderapi.h 915 B

12345678910111213141516171819202122232425
  1. #ifndef _FILEREADERAPI_H
  2. #define _FILEREADERAPI_H
  3. #include <api/filereader/api_filereader.h>
  4. class FileReaderApi : public api_fileReaderI
  5. {
  6. public:
  7. FileReaderApi();
  8. virtual ~FileReaderApi();
  9. virtual void *fileOpen(const wchar_t *filename, const wchar_t *mode);
  10. virtual void fileClose(void *fileHandle);
  11. virtual size_t fileRead(void *buffer, size_t size, void *fileHandle);
  12. virtual int fileWrite(const void *buffer, int size, void *fileHandle);
  13. virtual int fileSeek(int64_t offset, int origin, void *fileHandle);
  14. virtual uint64_t fileTell(void *fileHandle);
  15. virtual uint64_t fileGetFileSize(void *fileHandle);
  16. //virtual int fileExists(const wchar_t *filename);
  17. virtual int fileRemove(const wchar_t *filename);
  18. virtual int fileRemoveUndoable(const wchar_t *filename);
  19. virtual int fileMove(const wchar_t *filename, const wchar_t *destfilename);
  20. };
  21. #endif