25 #include "libopenraw/consts.h"
26 #include "libopenraw/io.h"
29 #include "io/stream.hpp"
52 LOGDBG1(
"Already open\n");
56 if (m_ioRef == NULL) {
81 return ::raw_filesize(m_ioRef);
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
const std::string & get_path() const
Get the uri path of the file.
IOFileRef raw_open(struct io_methods *methods, const char *path, int mode)
Raw open function.
int raw_close(IOFileRef f)
struct io_methods * get_default_io_methods(void)
Get the default IO methods.
int raw_seek(IOFileRef f, off_t offset, int whence)
int raw_read(IOFileRef f, void *buf, size_t count)
or_error
Error codes returned by libopenraw.
Global namespace for libopenraw.