tlzwstreamcompression Class Reference

#include <basestrm.h>

Inheritance diagram for tlzwstreamcompression:

Inheritance graph
[legend]
List of all members.

Public Member Functions

void writedata (const void *buf, int size)
int readdata (void *buf, int size, bool excpt=true)
virtual int readlzwdata (void *buf, int size, bool excpt=true)=0
virtual void writelzwdata (const void *buf, int size)=0
 tlzwstreamcompression (void)
virtual ~tlzwstreamcompression (void)

Protected Types

enum  tmode {
  none, reading, writing, readingdirect,
  readingrle
}
typedef deque< char > CDQ

Protected Member Functions

void close (void)

Protected Attributes

queue< char, CDQtempbuf
tmode mode

Classes

struct  Rdictionary
struct  Wdictionary

Detailed Description

Definition at line 223 of file basestrm.h.


Member Typedef Documentation

typedef deque<char> tlzwstreamcompression::CDQ [protected]

Definition at line 296 of file basestrm.h.


Member Enumeration Documentation

enum tlzwstreamcompression::tmode [protected]

Enumerator:
none 
reading 
writing 
readingdirect 
readingrle 

Definition at line 299 of file basestrm.h.


Constructor & Destructor Documentation

tlzwstreamcompression::tlzwstreamcompression ( void   ) 

Definition at line 34 of file oldlzw.cpp.

References mode, and none.

tlzwstreamcompression::~tlzwstreamcompression ( void   )  [virtual]

Definition at line 465 of file oldlzw.cpp.

References close(), mode, and writing.


Member Function Documentation

void tlzwstreamcompression::writedata ( const void *  buf,
int  size 
)

Reimplemented in tanycompression, tn_lzw_file_buf_stream, and tn_c_lzw_filestream.

Definition at line 201 of file oldlzw.cpp.

References DICTIONARY_SIZE, MAX_CODE, NEW_DICTIONARY, STARTING_CODE, and UNUSED_CODE.

int tlzwstreamcompression::readdata ( void *  buf,
int  size,
bool  excpt = true 
)

Reimplemented in tanycompression, tn_lzw_file_buf_stream, and tn_c_lzw_filestream.

Definition at line 311 of file oldlzw.cpp.

References END_OF_INPUT, MAX_CODE, mode, NEW_DICTIONARY, readingdirect, readingrle, readlzwdata(), STARTING_CODE, and tempbuf.

Referenced by tanycompression::readdata().

virtual int tlzwstreamcompression::readlzwdata ( void *  buf,
int  size,
bool  excpt = true 
) [pure virtual]

Implemented in tanycompression.

Referenced by readdata().

virtual void tlzwstreamcompression::writelzwdata ( const void *  buf,
int  size 
) [pure virtual]

Implemented in tanycompression.

void tlzwstreamcompression::close ( void   )  [protected]

Definition at line 455 of file oldlzw.cpp.

References END_OF_INPUT, mode, none, and writing.

Referenced by ~tlzwstreamcompression(), and tn_c_lzw_filestream::~tn_c_lzw_filestream().


Member Data Documentation

queue<char,CDQ> tlzwstreamcompression::tempbuf [protected]

Definition at line 297 of file basestrm.h.

Referenced by readdata(), and tn_c_lzw_filestream::readdata().

tmode tlzwstreamcompression::mode [protected]

Definition at line 300 of file basestrm.h.

Referenced by close(), readdata(), tn_c_lzw_filestream::readdata(), tlzwstreamcompression(), and ~tlzwstreamcompression().


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