LibreOffice Module lotuswordpro (master) 1
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
LwpIndexManager Class Referencefinal

LwpIndexManager, to read all index records and maintain the index information. More...

#include <lwpidxmgr.hxx>

Public Member Functions

 LwpIndexManager ()
 
void Read (LwpSvStream *pStrm)
 @descr Read all index records, VO_ROOTLEAFOBJINDEX, VO_ROOTOBJINDEX, VO_LEAFOBJINDEX More...
 
sal_uInt32 GetObjOffset (LwpObjectID objid)
 @descr get object offset per the object id More...
 
sal_uInt32 GetObjTime (sal_uInt16 index)
 

Private Member Functions

void ReadRootData (LwpObjectStream *pObjStrm)
 @descr Read data in VO_ROOTOBJINDEX More...
 
void ReadObjIndexData (LwpObjectStream *pObjStrm)
 @descr Read data in VO_OBJINDEX More...
 
void ReadObjIndex (LwpSvStream *pStrm)
 @descr Read VO_OBJINDEX More...
 
void ReadLeafIndex (LwpSvStream *pStrm)
 @descr Read VO_LEAFOBJINDEX More...
 
void ReadLeafData (LwpObjectStream *pStrm)
 @descr Read data in VO_LEAFOBJINDEX More...
 
void ReadTimeTable (LwpObjectStream *pStrm)
 @descr Read time table in VO_ROOTLEAFOBJINDEX and VO_ROOTOBJINDEX More...
 

Private Attributes

std::vector< LwpKeym_ObjectKeys
 
std::vector< LwpKeym_RootObjs
 
std::vector< sal_uInt32 > m_TimeTable
 
sal_uInt32 m_nKeyCount
 
std::vector< sal_uInt32 > m_TempVec
 
sal_uInt32 m_ChildIndex [256]
 
sal_uInt16 m_nLeafCount
 

Static Private Attributes

static const sal_uInt8 MAXOBJECTIDS = 255
 

Detailed Description

LwpIndexManager, to read all index records and maintain the index information.

Definition at line 80 of file lwpidxmgr.hxx.

Constructor & Destructor Documentation

◆ LwpIndexManager()

LwpIndexManager::LwpIndexManager ( )

Definition at line 76 of file lwpidxmgr.cxx.

References m_TempVec, and MAXOBJECTIDS.

Member Function Documentation

◆ GetObjOffset()

sal_uInt32 LwpIndexManager::GetObjOffset ( LwpObjectID  objid)

@descr get object offset per the object id

Definition at line 298 of file lwpidxmgr.cxx.

References BAD_OFFSET, LwpObjectID::GetHigh(), LwpObjectID::GetLow(), M, m_nKeyCount, m_ObjectKeys, and U.

Referenced by LwpObjectFactory::QueryObject().

◆ GetObjTime()

sal_uInt32 LwpIndexManager::GetObjTime ( sal_uInt16  index)
inline

Definition at line 109 of file lwpidxmgr.hxx.

References index, and m_TimeTable.

Referenced by LwpObjectID::ReadIndexed().

◆ Read()

void LwpIndexManager::Read ( LwpSvStream pStrm)

◆ ReadLeafData()

void LwpIndexManager::ReadLeafData ( LwpObjectStream pStrm)
private

◆ ReadLeafIndex()

void LwpIndexManager::ReadLeafIndex ( LwpSvStream pStrm)
private

@descr Read VO_LEAFOBJINDEX

Definition at line 247 of file lwpidxmgr.cxx.

References LwpObjectHeader::GetSize(), LwpObjectHeader::IsCompressed(), LwpObjectHeader::Read(), and ReadLeafData().

Referenced by ReadObjIndexData().

◆ ReadObjIndex()

void LwpIndexManager::ReadObjIndex ( LwpSvStream pStrm)
private

◆ ReadObjIndexData()

void LwpIndexManager::ReadObjIndexData ( LwpObjectStream pObjStrm)
private

◆ ReadRootData()

void LwpIndexManager::ReadRootData ( LwpObjectStream pObjStrm)
private

◆ ReadTimeTable()

void LwpIndexManager::ReadTimeTable ( LwpObjectStream pStrm)
private

@descr Read time table in VO_ROOTLEAFOBJINDEX and VO_ROOTOBJINDEX

Definition at line 285 of file lwpidxmgr.cxx.

References i, m_TimeTable, LwpObjectStream::QuickReaduInt16(), and LwpObjectStream::QuickReaduInt32().

Referenced by Read(), and ReadRootData().

Member Data Documentation

◆ m_ChildIndex

sal_uInt32 LwpIndexManager::m_ChildIndex[256]
private

Definition at line 94 of file lwpidxmgr.hxx.

Referenced by Read(), and ReadRootData().

◆ m_nKeyCount

sal_uInt32 LwpIndexManager::m_nKeyCount
private

Definition at line 91 of file lwpidxmgr.hxx.

Referenced by GetObjOffset(), Read(), ReadLeafData(), and ReadObjIndexData().

◆ m_nLeafCount

sal_uInt16 LwpIndexManager::m_nLeafCount
private

Definition at line 95 of file lwpidxmgr.hxx.

Referenced by Read(), and ReadRootData().

◆ m_ObjectKeys

std::vector<LwpKey> LwpIndexManager::m_ObjectKeys
private

Definition at line 86 of file lwpidxmgr.hxx.

Referenced by GetObjOffset(), Read(), ReadLeafData(), and ReadObjIndexData().

◆ m_RootObjs

std::vector<LwpKey> LwpIndexManager::m_RootObjs
private

Definition at line 87 of file lwpidxmgr.hxx.

Referenced by Read(), and ReadRootData().

◆ m_TempVec

std::vector<sal_uInt32> LwpIndexManager::m_TempVec
private

Definition at line 92 of file lwpidxmgr.hxx.

Referenced by LwpIndexManager(), and ReadObjIndexData().

◆ m_TimeTable

std::vector<sal_uInt32> LwpIndexManager::m_TimeTable
private

Definition at line 88 of file lwpidxmgr.hxx.

Referenced by GetObjTime(), and ReadTimeTable().

◆ MAXOBJECTIDS

const sal_uInt8 LwpIndexManager::MAXOBJECTIDS = 255
staticprivate

Definition at line 85 of file lwpidxmgr.hxx.

Referenced by LwpIndexManager().


The documentation for this class was generated from the following files: