72 bool isOpen()
const {
return file_ !=
nullptr; }
82 void seek(std::streamoff pos, std::ios::seekdir dir);
87 std::streamoff tell();
92 bool eof()
const {
return feof(file_) != 0; }
100 size_t read(
void* buffer,
size_t size,
size_t pos)
const;
132 std::string getFilePath()
const;
139 void setBorrowedFile(FILE* file);
146 void setOwnedFile(FILE* file);
151 FILE* file_{
nullptr};
152 bool fileBorrowed_{
false};