FileSystem.h 620 B

1234567891011121314151617
  1. #ifndef FILESYSTEM_H
  2. #define FILESYSTEM_H
  3. #include <OgreString.h>
  4. class FileSystem
  5. {
  6. public:
  7. FileSystem() = delete;
  8. static unsigned int GetFileSize(const Ogre::String& path);
  9. static bool ReadFile(const Ogre::String &path, void* buffer, const unsigned int start, const unsigned int length);
  10. static bool WriteFile(const Ogre::String &path, const void* buffer, const unsigned int length);
  11. static bool WriteNewFile(const Ogre::String &path, const void* buffer, const unsigned int length);
  12. static bool RemoveFile(const Ogre::String &path);
  13. };
  14. #endif // FILESYSTEM_H