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

ppm_expander Class Reference

#include </home/clem/local/src/opie/noncore/apps/opie-reader/ppm_expander.h>

Inheritance diagram for ppm_expander:

Inheritance graph
[legend]
Collaboration diagram for ppm_expander:

Collaboration graph
[legend]
List of all members.

Public Member Functions

QString about ()
void suspend ()
void unsuspend ()
 ppm_expander ()
int OpenFile (const char *infile)
int getch ()
void locate (unsigned short block, unsigned int n)
virtual ~ppm_expander ()
unsigned int locate ()
void locate (unsigned int n)
bool hasrandomaccess ()
void sizes (unsigned long &file, unsigned long &text)
MarkupType PreferredMarkup ()

Private Member Functions

int home ()

Private Attributes

UCHARbuf_in
UCHARbuf_out
unsigned int bufsize
unsigned int outbytes
unsigned long blocksize
unsigned short numblocks
unsigned short curblock
unsigned short maxnode
bool needppmend
FILE * my_file_in
PPM_ReadBufmy_read_buf
ppm_worker ppm

Constructor & Destructor Documentation

ppm_expander::ppm_expander  )  [inline]
 

Definition at line 43 of file ppm_expander.h.

References buf_in, buf_out, bufsize, and outbytes.

ppm_expander::~ppm_expander  )  [virtual]
 

Definition at line 29 of file ppm_expander.cpp.

References ppm_worker::arith, ArithClass::Arith_DecodeEnd(), buf_in, buf_out, my_file_in, my_read_buf, needppmend, NULL, ppm, and ppm_worker::PPM_End().


Member Function Documentation

QString ppm_expander::about  )  [inline, virtual]
 

Implements CExpander_Interface.

Definition at line 29 of file ppm_expander.h.

int ppm_expander::getch  )  [virtual]
 

Implements CExpander.

Definition at line 97 of file ppm_expander.cpp.

References curblock, locate(), numblocks, outbytes, ppm, ppm_worker::PPM_Decode(), and SYM_EOF.

Referenced by locate().

bool ppm_expander::hasrandomaccess  )  [inline, virtual]
 

Implements CExpander.

Definition at line 56 of file ppm_expander.h.

References numblocks.

int ppm_expander::home  )  [private]
 

Definition at line 53 of file ppm_expander.cpp.

References blocksize, len, locate(), maxnode, my_file_in, numblocks, outbytes, stat_magic, and STAT_MAGIC_SIZE.

Referenced by OpenFile().

void ppm_expander::locate unsigned int  n  )  [virtual]
 

Implements CExpander.

Definition at line 73 of file ppm_expander.cpp.

References blocksize, locate(), and outbytes.

unsigned int ppm_expander::locate  )  [inline, virtual]
 

Implements CExpander.

Definition at line 54 of file ppm_expander.h.

References outbytes.

Referenced by getch(), home(), and locate().

void ppm_expander::locate unsigned short  block,
unsigned int  n
 

Definition at line 78 of file ppm_expander.cpp.

References ppm_worker::arith, ArithClass::Arith_DecodeInit(), blocksize, buf_in, bufsize, curblock, getch(), i, maxnode, my_file_in, my_read_buf, needppmend, numblocks, ppm, ppm_worker::PPM_End(), ppm_worker::PPM_Init(), and STAT_MAGIC_SIZE.

int ppm_expander::OpenFile const char *  infile  )  [virtual]
 

Implements CExpander.

Definition at line 38 of file ppm_expander.cpp.

References home(), my_file_in, and my_read_buf.

MarkupType ppm_expander::PreferredMarkup  )  [inline, virtual]
 

Implements CExpander.

Definition at line 58 of file ppm_expander.h.

References cTEXT.

void ppm_expander::sizes unsigned long &  file,
unsigned long &  text
[virtual]
 

Implements CExpander.

Definition at line 45 of file ppm_expander.cpp.

References blocksize, my_file_in, and numblocks.

void ppm_expander::suspend  )  [inline]
 

Definition at line 40 of file ppm_expander.h.

void ppm_expander::unsuspend  )  [inline]
 

Definition at line 41 of file ppm_expander.h.

Referenced by PPM_ReadBuf::readbuf().


Member Data Documentation

unsigned long ppm_expander::blocksize [private]
 

Definition at line 19 of file ppm_expander.h.

Referenced by home(), locate(), and sizes().

UCHAR* ppm_expander::buf_in [private]
 

Definition at line 16 of file ppm_expander.h.

Referenced by locate(), ppm_expander(), and ~ppm_expander().

UCHAR * ppm_expander::buf_out [private]
 

Definition at line 16 of file ppm_expander.h.

Referenced by ppm_expander(), and ~ppm_expander().

unsigned int ppm_expander::bufsize [private]
 

Definition at line 17 of file ppm_expander.h.

Referenced by locate(), and ppm_expander().

unsigned short ppm_expander::curblock [private]
 

Definition at line 21 of file ppm_expander.h.

Referenced by getch(), and locate().

unsigned short ppm_expander::maxnode [private]
 

Definition at line 22 of file ppm_expander.h.

Referenced by home(), and locate().

FILE* ppm_expander::my_file_in [private]
 

Definition at line 25 of file ppm_expander.h.

Referenced by home(), locate(), OpenFile(), sizes(), and ~ppm_expander().

PPM_ReadBuf* ppm_expander::my_read_buf [private]
 

Definition at line 26 of file ppm_expander.h.

Referenced by locate(), OpenFile(), and ~ppm_expander().

bool ppm_expander::needppmend [private]
 

Definition at line 23 of file ppm_expander.h.

Referenced by locate(), and ~ppm_expander().

unsigned short ppm_expander::numblocks [private]
 

Definition at line 20 of file ppm_expander.h.

Referenced by getch(), hasrandomaccess(), home(), locate(), and sizes().

unsigned int ppm_expander::outbytes [private]
 

Definition at line 18 of file ppm_expander.h.

Referenced by getch(), home(), locate(), and ppm_expander().

ppm_worker ppm_expander::ppm [private]
 

Definition at line 27 of file ppm_expander.h.

Referenced by getch(), locate(), and ~ppm_expander().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:45:21 2005 for OPIE by  doxygen 1.4.2