#include <io.h>
Public Types | |
kSet = SEEK_SET | |
Beginning of the file. | |
kCur = SEEK_CUR | |
Current position. | |
kEnd = SEEK_END | |
End of file. | |
enum | Whence { kSet = SEEK_SET, kCur = SEEK_CUR, kEnd = SEEK_END } |
Public Member Functions | |
virtual | ~IOHandler () |
Virtual destructor. | |
virtual void | close (void)=0 throw (DmException) |
Close. | |
virtual size_t | read (char *buffer, size_t count)=0 throw (DmException) |
virtual size_t | write (const char *buffer, size_t count)=0 throw (DmException) |
virtual void | seek (off_t offset, Whence whence)=0 throw (DmException) |
virtual off_t | tell (void)=0 throw (DmException) |
Return the cursor position. | |
virtual void | flush (void)=0 throw (DmException) |
Flush the buffer. | |
virtual bool | eof (void)=0 throw (DmException) |
Return true if end of file. |
IOHandler::~IOHandler | ( | ) | [virtual] |
Virtual destructor.
virtual void dmlite::IOHandler::close | ( | void | ) | throw (DmException) [pure virtual] |
Close.
virtual bool dmlite::IOHandler::eof | ( | void | ) | throw (DmException) [pure virtual] |
Return true if end of file.
virtual void dmlite::IOHandler::flush | ( | void | ) | throw (DmException) [pure virtual] |
Flush the buffer.
virtual size_t dmlite::IOHandler::read | ( | char * | buffer, | |
size_t | count | |||
) | throw (DmException) [pure virtual] |
Read.
buffer | Where to store the data. | |
count | Number of bytes to read. |
virtual void dmlite::IOHandler::seek | ( | off_t | offset, | |
Whence | whence | |||
) | throw (DmException) [pure virtual] |
Move the cursor.
offset | The offset. | |
whence | Reference. |
virtual off_t dmlite::IOHandler::tell | ( | void | ) | throw (DmException) [pure virtual] |
Return the cursor position.
virtual size_t dmlite::IOHandler::write | ( | const char * | buffer, | |
size_t | count | |||
) | throw (DmException) [pure virtual] |
Write.
buffer | Data to write. | |
count | Number of bytes to write. |