22 #ifndef __IO_STREAM_H__
23 #define __IO_STREAM_H__
25 #include <sys/types.h>
30 #include <libopenraw/libopenraw.h>
32 #include "exception.h"
46 Stream(
const char *filename);
56 virtual Error
open() = 0;
58 virtual int close() = 0;
60 virtual int seek(off_t offset,
int whence) = 0;
62 virtual int read(
void *buf,
size_t count) = 0;
63 virtual off_t filesize() = 0;
78 uint8_t readByte() throw(Internals::IOException);
80 void set_error(Error error)
92 std::string m_fileName;
CIFF is the container for CRW files. It is an attempt from Canon to make this a standard. I guess it failed.
virtual int seek(off_t offset, int whence)=0
const std::string & get_path() const
virtual int read(void *buf, size_t count)=0
Stream(const char *filename)
base virtual class for IO