22 #ifndef OR_INTERNALS_IO_FILE_H_
23 #define OR_INTERNALS_IO_FILE_H_
26 #include <sys/types.h>
28 #include <libopenraw/io.h>
44 File(
const char *filename);
48 File &operator=(
const File &) =
delete;
58 virtual int close()
override;
60 virtual int seek(off_t offset,
int whence)
override;
62 virtual int read(
void *buf,
size_t count)
override;
virtual int read(void *buf, size_t count) override
read in the file. Semantics are similar to POSIX read()
virtual Error open() override
Open the file.
File(const char *filename)
virtual int close() override
close the file
virtual int seek(off_t offset, int whence) override
seek in the file. Semantics are similar to POSIX lseek()
virtual off_t filesize() override
Return the filesize.
base virtual class for IO
or_error
Error codes returned by libopenraw.
Global namespace for libopenraw.
IO methods for the IO subsystem.