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

RBPage Class Reference

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

List of all members.

Public Member Functions

 RBPage ()
 ~RBPage ()
int getch (CReb *)
unsigned short int getuint (CReb *)
int getint (CReb *)
void startpage (UInt32, UInt32, bool, UInt32)
UInt32 pageno ()
UInt32 offset ()
void setoffset (UInt32, size_t, bool, UInt32, UInt32)
void init (FILE *_f, UInt32 _bs, size_t(*_decompress)(UInt8 *, size_t, UInt8 *, size_t))
UInt32 length ()

Public Attributes

UInt32 m_startoff
UInt32 m_endoff

Private Member Functions

void readchunk ()
void initpage (UInt32 pos, size_t _cp, bool _isCompressed, UInt32 _len)

Private Attributes

UInt32 filepos
UInt32 pageoffset
UInt32 nochunks
UInt32 currentchunk
UInt32 chunkpos
UInt32 chunklen
UInt32 chunkoffset
UInt32 m_pagelen
UInt32 m_blocksize
bool m_Compressed
UInt32chunklist
UInt8chunk
FILE * fin
UInt32 m_pageno
size_t(* m_decompress )(UInt8 *, size_t, UInt8 *, size_t)


Constructor & Destructor Documentation

RBPage::RBPage  )  [inline]
 

Definition at line 48 of file Reb.h.

RBPage::~RBPage  )  [inline]
 

Definition at line 49 of file Reb.h.

References chunk, chunklist, and NULL.


Member Function Documentation

int RBPage::getch CReb  ) 
 

Definition at line 651 of file Reb.cpp.

References chunk, chunklen, chunkoffset, currentchunk, m_endoff, nochunks, offset(), pageoffset, and readchunk().

Referenced by CReb::getch(), getint(), getuint(), CReb::OpenFile(), and CReb::readindex().

int RBPage::getint CReb  ) 
 

Definition at line 681 of file Reb.cpp.

References getch(), and i.

Referenced by CReb::readindex().

unsigned short int RBPage::getuint CReb  ) 
 

Definition at line 668 of file Reb.cpp.

References getch(), and i.

Referenced by CReb::readindex().

void RBPage::init FILE *  _f,
UInt32  _bs,
size_t(*)(UInt8 *, size_t, UInt8 *, size_t)  _decompress
[inline]
 

Definition at line 61 of file Reb.h.

References chunk, fin, m_blocksize, and m_decompress.

Referenced by CReb::OpenFile(), and CReb::readindex().

void RBPage::initpage UInt32  pos,
size_t  _cp,
bool  _isCompressed,
UInt32  _len
[private]
 

Definition at line 607 of file Reb.cpp.

References chunklist, chunkpos, currentchunk, filepos, fin, m_blocksize, m_Compressed, m_endoff, m_pagelen, m_pageno, m_startoff, nochunks, NULL, pageoffset, and qDebug().

Referenced by setoffset(), and startpage().

UInt32 RBPage::length  )  [inline]
 

Definition at line 68 of file Reb.h.

References m_pagelen.

Referenced by CReb::readindex().

UInt32 RBPage::offset  )  [inline]
 

Definition at line 59 of file Reb.h.

References chunkoffset, and pageoffset.

Referenced by getch(), CReb::locate(), and CReb::start2endSection().

UInt32 RBPage::pageno  )  [inline]
 

Definition at line 58 of file Reb.h.

References m_pageno.

Referenced by CReb::findanchor(), CReb::locate(), and CReb::start2endSection().

void RBPage::readchunk  )  [private]
 

Definition at line 694 of file Reb.cpp.

References chunk, chunklen, chunklist, chunkoffset, chunkpos, currentchunk, fin, m_blocksize, m_Compressed, and m_pagelen.

Referenced by getch(), setoffset(), and startpage().

void RBPage::setoffset UInt32  ,
size_t  ,
bool  ,
UInt32  ,
UInt32 
 

Definition at line 720 of file Reb.cpp.

References chunklist, chunkoffset, chunkpos, currentchunk, filepos, i, initpage(), m_blocksize, m_Compressed, m_pagelen, m_pageno, nochunks, pageoffset, and readchunk().

Referenced by CReb::locate().

void RBPage::startpage UInt32  ,
UInt32  ,
bool  ,
UInt32 
 

Definition at line 637 of file Reb.cpp.

References initpage(), and readchunk().

Referenced by CReb::OpenFile(), CReb::readindex(), and CReb::startpage().


Member Data Documentation

UInt8* RBPage::chunk [private]
 

Definition at line 42 of file Reb.h.

Referenced by getch(), init(), readchunk(), and ~RBPage().

UInt32 RBPage::chunklen [private]
 

Definition at line 37 of file Reb.h.

Referenced by getch(), and readchunk().

UInt32* RBPage::chunklist [private]
 

Definition at line 41 of file Reb.h.

Referenced by initpage(), readchunk(), setoffset(), and ~RBPage().

UInt32 RBPage::chunkoffset [private]
 

Definition at line 37 of file Reb.h.

Referenced by getch(), offset(), readchunk(), and setoffset().

UInt32 RBPage::chunkpos [private]
 

Definition at line 37 of file Reb.h.

Referenced by initpage(), readchunk(), and setoffset().

UInt32 RBPage::currentchunk [private]
 

Definition at line 37 of file Reb.h.

Referenced by getch(), initpage(), readchunk(), and setoffset().

UInt32 RBPage::filepos [private]
 

Definition at line 35 of file Reb.h.

Referenced by initpage(), and setoffset().

FILE* RBPage::fin [private]
 

Definition at line 43 of file Reb.h.

Referenced by init(), initpage(), and readchunk().

UInt32 RBPage::m_blocksize [private]
 

Definition at line 38 of file Reb.h.

Referenced by init(), initpage(), readchunk(), and setoffset().

bool RBPage::m_Compressed [private]
 

Definition at line 39 of file Reb.h.

Referenced by initpage(), readchunk(), and setoffset().

size_t(* RBPage::m_decompress)(UInt8 *, size_t, UInt8 *, size_t) [private]
 

Referenced by init().

UInt32 RBPage::m_endoff
 

Definition at line 69 of file Reb.h.

Referenced by getch(), initpage(), and CReb::start2endSection().

UInt32 RBPage::m_pagelen [private]
 

Definition at line 38 of file Reb.h.

Referenced by initpage(), length(), readchunk(), and setoffset().

UInt32 RBPage::m_pageno [private]
 

Definition at line 44 of file Reb.h.

Referenced by initpage(), pageno(), and setoffset().

UInt32 RBPage::m_startoff
 

Definition at line 69 of file Reb.h.

Referenced by initpage(), and CReb::start2endSection().

UInt32 RBPage::nochunks [private]
 

Definition at line 37 of file Reb.h.

Referenced by getch(), initpage(), and setoffset().

UInt32 RBPage::pageoffset [private]
 

Definition at line 36 of file Reb.h.

Referenced by getch(), initpage(), offset(), and setoffset().


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