Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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)

Constructor & Destructor Documentation

tn_file_buf_stream::tn_file_buf_stream const ASCString _fileName,
IOMode  mode
 

Definition at line 177 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 261 of file simplestream.cpp.

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


Member Function Documentation

time_t tn_file_buf_stream::get_time void   )  [virtual]
 

Definition at line 161 of file simplestream.cpp.

References tnstream::getDeviceName().

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

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

int tn_file_buf_stream::getstreamsize void   )  [virtual]
 

Definition at line 147 of file simplestream.cpp.

References tnstream::getDeviceName().

Referenced by getSize().

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

Implements tnbufstream.

Definition at line 239 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::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 211 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().

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

Implements tnbufstream.

Definition at line 251 of file simplestream.cpp.

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

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


The documentation for this class was generated from the following files:
Generated on Tue Jun 24 02:21:41 2008 for Advanced Strategic Command by  doxygen 1.4.2