1
0

fileread.h 778 B

1234567891011121314151617181920212223
  1. #ifndef _FILEREADERS_H
  2. #define _FILEREADERS_H
  3. #include <api/filereader/svc_filereadI.h>
  4. #include <api/service/servicei.h>
  5. class FileReaders
  6. {
  7. public:
  8. static void *open(const wchar_t *filename, const wchar_t *mode);
  9. static void close(void *handle);
  10. static size_t read(void *buffer, size_t size, void *handle);
  11. static size_t write(const void *buffer, size_t size, void *handle);
  12. static int seek(int64_t offset, int origin, void *handle);
  13. static uint64_t tell(void *handle);
  14. static uint64_t getFileSize(void *handle);
  15. static int exists(const wchar_t *filename);
  16. static int remove(const wchar_t *filename);
  17. static int removeUndoable(const wchar_t *filename);
  18. static int move(const wchar_t *filename, const wchar_t *destfilename);
  19. };
  20. #endif//_FILEREADERS_H