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

tn_c_lzw_filestream Class Reference

#include <basestrm.h>

Inheritance diagram for tn_c_lzw_filestream:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 tn_c_lzw_filestream (const ASCString &name, IOMode mode)
void writedata (const void *buf, int size)
 writes data to the stream
int readdata (void *buf, int size, bool excpt=true)
 Reads data from the stream.
virtual ~tn_c_lzw_filestream ()
virtual time_t get_time (void)
virtual int getSize (void)
 returns the size of the stream or -1 if the stream does not have a size
ASCString getLocation ()
 returns the location of the stream.

Protected Member Functions

int readcmpdata (void *buf, int size, bool excpt=true)
void writecmpdata (const void *buf, int size)

Constructor & Destructor Documentation

tn_c_lzw_filestream::tn_c_lzw_filestream const ASCString name,
IOMode  mode
 

Definition at line 1562 of file basestrm.cpp.

References constructFileName(), FileLocation::container, tnstream::devicename, FileLocation::directoryLevel, FileLocation::found, tnstream::getDeviceName(), tanycompression::init(), locateFile(), tncontainerstream::opencontainerfile(), and tnstream::reading.

tn_c_lzw_filestream::~tn_c_lzw_filestream  )  [virtual]
 

Definition at line 1666 of file basestrm.cpp.

References tlzwstreamcompression::close(), tanycompression::close_compression(), and tncontainerstream::closecontainerfile().


Member Function Documentation

time_t tn_c_lzw_filestream::get_time void   )  [virtual]
 

Definition at line 1658 of file basestrm.cpp.

References tn_file_buf_stream::get_time().

ASCString tn_c_lzw_filestream::getLocation  )  [virtual]
 

returns the location of the stream.

This may be a complete english sentence describing how the stream (usually a file) can be found. Should only be used for informing the user.

Reimplemented from tnstream.

Definition at line 1611 of file basestrm.cpp.

Referenced by checkFileVersion(), and loadalltextfiles().

int tn_c_lzw_filestream::getSize void   )  [virtual]
 

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

Reimplemented from tnstream.

Definition at line 1616 of file basestrm.cpp.

References tn_file_buf_stream::getSize().

int tn_c_lzw_filestream::readcmpdata void *  buf,
int  size,
bool  excpt = true
[protected, virtual]
 

Implements t_compressor_stream_interface.

Definition at line 1632 of file basestrm.cpp.

References tncontainerstream::readcontainerdata(), and tnbufstream::readdata().

int tn_c_lzw_filestream::readdata void *  buf,
int  size,
bool  excpt = true
[virtual]
 

Reads data from the stream.

Parameters:
buf the buffer which the data is written to
size the number of bytes which should be read
excpt If true the operation will throw an exception if the desired number of bytes cannot be read.
Returns:
the number of bytes which were read.

Implements tnstream.

Definition at line 1646 of file basestrm.cpp.

References tlzwstreamcompression::mode, tncontainerstream::readcontainerdata(), tanycompression::readdata(), tnbufstream::readdata(), tlzwstreamcompression::readingdirect, and tlzwstreamcompression::tempbuf.

Referenced by loadpalette().

void tn_c_lzw_filestream::writecmpdata const void *  buf,
int  size
[protected, virtual]
 

Implements t_compressor_stream_interface.

Definition at line 1624 of file basestrm.cpp.

References tnstream::reading, tnbufstream::writedata(), and tnstream::writing.

void tn_c_lzw_filestream::writedata const void *  buf,
int  size
[virtual]
 

writes data to the stream

Parameters:
buf pointer to the buffer
size the number of bytes which are going to be written

Implements tnstream.

Definition at line 1641 of file basestrm.cpp.

References tanycompression::writedata().


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