5 #ifndef DMLITE_CPP_IO_H
6 #define DMLITE_CPP_IO_H
38 virtual
size_t read(
char* buffer,
size_t count) throw (DmException) = 0;
44 virtual
size_t write(const
char* buffer,
size_t count) throw (DmException) = 0;
49 virtual
void seek(off_t offset,
Whence whence) throw (DmException) = 0;
52 virtual off_t
tell(
void) throw (DmException) = 0;
55 virtual
void flush(
void) throw (DmException) = 0;
58 virtual
bool eof(
void) throw (DmException) = 0;
71 virtual IOHandler* createIOHandler(
const std::string& pfn,
73 const Extensible& extras)
throw (DmException) = 0;
78 virtual void doneWriting(
const std::string& pfn,
79 const Extensible& params)
throw (DmException) = 0;
97 #endif // DMLITE_CPP_IO_H