22 #include <libopenraw/libopenraw.h>
30 : OpenRaw::IO::
Stream(filename),
31 m_methods(::get_default_io_methods()),
42 m_ioRef = ::raw_open(m_methods,
get_path().c_str(), O_RDONLY);
43 if (m_ioRef == NULL) {
44 return OR_ERROR_CANT_OPEN;
51 return ::raw_close(m_ioRef);
56 return ::raw_seek(m_ioRef, offset, whence);
61 return ::raw_read(m_ioRef, buf, count);
64 off_t File::filesize()
66 return ::raw_filesize(m_ioRef);
virtual int read(void *buf, size_t count)
const std::string & get_path() const
virtual int seek(off_t offset, int whence)
File(const char *filename)
base virtual class for IO