Stream Class Reference

#include <Stream.h>

Collaboration diagram for Stream:

Collaboration graph
[legend]

List of all members.

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


Member Typedef Documentation


Member Enumeration Documentation

Enumerator:
IO_FILE 
IO_CIN 
IO_COUT 

Enumerator:
RW_READ 
RW_WRITE 


Constructor & Destructor Documentation

Stream::Stream ( string  _filename,
Stream::RW_TYPE  _type 
)

Stream::Stream ( Stream::IO_SOURCE  _iotype  ) 

Stream::~Stream ( void   ) 


Member Function Documentation

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 (  ) 


Member Data Documentation


The documentation for this class was generated from the following files:

Generated on Wed Jun 18 09:40:46 2008 for pktanon by  doxygen 1.5.5