#include <Stream.h>
Public Types | |
enum | _IO_SOURCE { IO_FILE, IO_CIN, IO_COUT } |
enum | _RW_TYPE { RW_READ = 1, RW_WRITE = 2 } |
typedef enum Stream::_IO_SOURCE | IO_SOURCE |
typedef enum Stream::_RW_TYPE | RW_TYPE |
Public Member Functions | |
Stream (string _filename, Stream::RW_TYPE _type) | |
Stream (Stream::IO_SOURCE _iotype) | |
~Stream (void) | |
bool | read (unsigned char *buf, int count) |
bool | write (unsigned char *buf, int count) |
bool | good () |
bool | eof () |
bool | isOpen () |
bool | flush () |
Stream::IO_SOURCE | getIoSource () |
Stream::RW_TYPE | getReadWriteType () |
Private Attributes | |
Stream::IO_SOURCE | iosource |
Stream::RW_TYPE | rwtype |
BufferedFile | fileobj |
typedef enum Stream::_IO_SOURCE Stream::IO_SOURCE |
typedef enum Stream::_RW_TYPE Stream::RW_TYPE |
enum Stream::_IO_SOURCE |
enum Stream::_RW_TYPE |
Stream::Stream | ( | string | _filename, | |
Stream::RW_TYPE | _type | |||
) |
Stream::Stream | ( | Stream::IO_SOURCE | _iotype | ) |
Stream::~Stream | ( | void | ) |
bool Stream::read | ( | unsigned char * | buf, | |
int | count | |||
) |
bool Stream::write | ( | unsigned char * | buf, | |
int | count | |||
) |
bool Stream::good | ( | ) |
bool Stream::eof | ( | ) |
bool Stream::isOpen | ( | ) |
bool Stream::flush | ( | ) |
Stream::IO_SOURCE Stream::getIoSource | ( | ) |
Stream::RW_TYPE Stream::getReadWriteType | ( | ) |
Stream::IO_SOURCE Stream::iosource [private] |
Stream::RW_TYPE Stream::rwtype [private] |
BufferedFile Stream::fileobj [private] |