tn_file_buf_stream Class Reference

#include <simplestream.h>

Inheritance diagram for tn_file_buf_stream:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 tn_file_buf_stream (const ASCString &_fileName, IOMode mode)
virtual void seek (int newpos)
 Sets the stream pointer to a new location. An exception is thrown if the stream does not support seeking.
virtual int getstreamsize (void)
virtual int getSize (void)
 returns the size of the stream or -1 if the stream does not have a size
virtual time_t get_time (void)
virtual ~tn_file_buf_stream ()

Protected Member Functions

void readbuffer (void)
void writebuffer (void)

Detailed Description

Definition at line 52 of file simplestream.h.


Constructor & Destructor Documentation

tn_file_buf_stream::tn_file_buf_stream ( const ASCString _fileName,
IOMode  mode 
)

Definition at line 178 of file simplestream.cpp.

References tnbufstream::_mode, constructFileName(), tnstream::devicename, filereadmode, filewritemode, pathdelimitter, readbuffer(), and tnstream::reading.

tn_file_buf_stream::~tn_file_buf_stream (  )  [virtual]

Definition at line 264 of file simplestream.cpp.

References tnbufstream::_mode, tnbufstream::close(), tnstream::getDeviceName(), tnstream::uninitialized, writebuffer(), and tnstream::writing.


Member Function Documentation

void tn_file_buf_stream::readbuffer ( void   )  [protected, virtual]

Implements tnbufstream.

Definition at line 242 of file simplestream.cpp.

References tnbufstream::datasize, tnstream::getDeviceName(), tnbufstream::memsize, and tnbufstream::zeiger.

Referenced by seek(), and tn_file_buf_stream().

void tn_file_buf_stream::writebuffer ( void   )  [protected, virtual]

Implements tnbufstream.

Definition at line 254 of file simplestream.cpp.

References tnbufstream::actmempos, tnstream::getDeviceName(), and tnbufstream::zeiger.

Referenced by seek(), and ~tn_file_buf_stream().

void tn_file_buf_stream::seek ( int  newpos  )  [virtual]

Sets the stream pointer to a new location. An exception is thrown if the stream does not support seeking.

Reimplemented from tnstream.

Definition at line 213 of file simplestream.cpp.

References tnbufstream::_mode, tnbufstream::actmempos, tnbufstream::datasize, tnstream::getDeviceName(), readbuffer(), writebuffer(), and tnstream::writing.

Referenced by tncontainerstream::opencontainerfile(), tncontainerstream::tncontainerstream(), and writepcx().

int tn_file_buf_stream::getstreamsize ( void   )  [virtual]

Definition at line 148 of file simplestream.cpp.

References tnstream::getDeviceName().

Referenced by getSize(), and tfindfile::tfindfile().

virtual int tn_file_buf_stream::getSize ( void   )  [inline, virtual]

returns the size of the stream or -1 if the stream does not have a size

Reimplemented from tnstream.

Definition at line 71 of file simplestream.h.

References getstreamsize().

Referenced by tn_c_lzw_filestream::getSize().

time_t tn_file_buf_stream::get_time ( void   )  [virtual]

Definition at line 162 of file simplestream.cpp.

References tnstream::getDeviceName().

Referenced by get_filetime(), tn_c_lzw_filestream::get_time(), and tfindfile::tfindfile().


The documentation for this class was generated from the following files:
Generated on Mon May 21 01:47:52 2012 for Advanced Strategic Command by  doxygen 1.5.1