123456789101112131415161718192021222324252627282930 |
- #ifndef CORE_FILE_READER_HPP
- #define CORE_FILE_READER_HPP
- #include "core/io/File.hpp"
- namespace Core {
- class FileReader final {
- void* file;
- Path path;
- public:
- FileReader();
- FileReader(const FileReader& other) = delete;
- FileReader(FileReader&& other);
- ~FileReader();
- FileReader& operator=(const FileReader& other) = delete;
- FileReader& operator=(FileReader&& other);
- const Path& getPath() const;
- Error open(const Path& path);
- Error open(const char* path);
- Error readChar(int& c);
- Error readChars(char* buffer, int bufferSize);
- void swap(FileReader& other);
- };
- }
- #endif
|