LibreOffice Module lotuswordpro (master) 1
|
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< LwpKey > | m_ObjectKeys |
std::vector< LwpKey > | m_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 |
LwpIndexManager, to read all index records and maintain the index information.
Definition at line 80 of file lwpidxmgr.hxx.
LwpIndexManager::LwpIndexManager | ( | ) |
Definition at line 76 of file lwpidxmgr.cxx.
References m_TempVec, and MAXOBJECTIDS.
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().
|
inline |
Definition at line 109 of file lwpidxmgr.hxx.
References index, and m_TimeTable.
Referenced by LwpObjectID::ReadIndexed().
void LwpIndexManager::Read | ( | LwpSvStream * | pStrm | ) |
@descr Read all index records, VO_ROOTLEAFOBJINDEX, VO_ROOTOBJINDEX, VO_LEAFOBJINDEX
Definition at line 87 of file lwpidxmgr.cxx.
References LwpSvStream::CheckSeek(), LwpObjectHeader::GetSize(), LwpObjectHeader::GetTag(), LwpObjectHeader::IsCompressed(), LwpSvStream::LWP_STREAM_BASE, m_ChildIndex, m_nKeyCount, m_nLeafCount, m_ObjectKeys, m_RootObjs, nPos, LwpObjectHeader::Read(), ReadLeafData(), ReadObjIndex(), ReadRootData(), ReadTimeTable(), and VO_ROOTLEAFOBJINDEX.
Referenced by LwpObjectFactory::ReadIndex().
|
private |
@descr Read data in VO_LEAFOBJINDEX
Definition at line 260 of file lwpidxmgr.cxx.
References LwpKey::id, m_nKeyCount, m_ObjectKeys, LwpObjectStream::QuickReaduInt16(), LwpObjectStream::QuickReaduInt32(), LwpObjectID::Read(), and LwpObjectID::ReadCompressed().
Referenced by Read(), ReadLeafIndex(), and ReadObjIndex().
|
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().
|
private |
@descr Read VO_OBJINDEX
Definition at line 226 of file lwpidxmgr.cxx.
References LwpObjectHeader::GetSize(), LwpObjectHeader::GetTag(), LwpObjectHeader::IsCompressed(), LwpObjectHeader::Read(), ReadLeafData(), ReadObjIndexData(), VO_LEAFOBJINDEX, and VO_OBJINDEX.
Referenced by Read().
|
private |
@descr Read data in VO_OBJINDEX
Definition at line 173 of file lwpidxmgr.cxx.
References LwpObjectStream::GetStream(), LwpKey::id, LwpSvStream::LWP_STREAM_BASE, m_nKeyCount, m_ObjectKeys, m_TempVec, nPos, LwpObjectStream::QuickReaduInt16(), LwpObjectStream::QuickReaduInt32(), LwpObjectID::Read(), LwpObjectID::ReadCompressed(), ReadLeafIndex(), and LwpSvStream::Seek().
Referenced by ReadObjIndex().
|
private |
@descr Read data in VO_ROOTOBJINDEX
Definition at line 133 of file lwpidxmgr.cxx.
References LwpKey::id, m_ChildIndex, m_nLeafCount, m_RootObjs, LwpObjectStream::QuickReaduInt16(), LwpObjectStream::QuickReaduInt32(), LwpObjectID::Read(), LwpObjectID::ReadCompressed(), ReadTimeTable(), and SAL_N_ELEMENTS.
Referenced by Read().
|
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().
|
private |
Definition at line 94 of file lwpidxmgr.hxx.
Referenced by Read(), and ReadRootData().
|
private |
Definition at line 91 of file lwpidxmgr.hxx.
Referenced by GetObjOffset(), Read(), ReadLeafData(), and ReadObjIndexData().
|
private |
Definition at line 95 of file lwpidxmgr.hxx.
Referenced by Read(), and ReadRootData().
|
private |
Definition at line 86 of file lwpidxmgr.hxx.
Referenced by GetObjOffset(), Read(), ReadLeafData(), and ReadObjIndexData().
|
private |
Definition at line 87 of file lwpidxmgr.hxx.
Referenced by Read(), and ReadRootData().
|
private |
Definition at line 92 of file lwpidxmgr.hxx.
Referenced by LwpIndexManager(), and ReadObjIndexData().
|
private |
Definition at line 88 of file lwpidxmgr.hxx.
Referenced by GetObjTime(), and ReadTimeTable().
|
staticprivate |
Definition at line 85 of file lwpidxmgr.hxx.
Referenced by LwpIndexManager().