summaryrefslogtreecommitdiff
path: root/connectivity/source/inc/dbase/DIndex.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/inc/dbase/DIndex.hxx')
-rw-r--r--connectivity/source/inc/dbase/DIndex.hxx52
1 files changed, 26 insertions, 26 deletions
diff --git a/connectivity/source/inc/dbase/DIndex.hxx b/connectivity/source/inc/dbase/DIndex.hxx
index fb3ed77e7048..c241dce433aa 100644
--- a/connectivity/source/inc/dbase/DIndex.hxx
+++ b/connectivity/source/inc/dbase/DIndex.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,7 +47,7 @@ namespace connectivity
typedef file::OBoolOperator OBoolOperator_BASE;
typedef file::OOperand OOperand_BASE;
- class ODbaseIndex : public ODbaseIndex_BASE
+ class ODbaseIndex : public ODbaseIndex_BASE
{
friend SvStream& operator << (SvStream &rStream, ODbaseIndex&);
friend SvStream& operator >> (SvStream &rStream, ODbaseIndex&);
@@ -63,34 +63,34 @@ namespace connectivity
//==================================================================
struct NDXHeader
{
- sal_uInt32 db_rootpage; /* Position der Rootpage */
- sal_uInt32 db_pagecount; /* Anzahl Pages */
- sal_uInt8 db_frei[4]; /* reserviert */
- sal_uInt16 db_keylen; /* Laenge des Schluessels */
- sal_uInt16 db_maxkeys; /* Max. # keys pro Seite */
+ sal_uInt32 db_rootpage; /* Position der Rootpage */
+ sal_uInt32 db_pagecount; /* Anzahl Pages */
+ sal_uInt8 db_frei[4]; /* reserviert */
+ sal_uInt16 db_keylen; /* Laenge des Schluessels */
+ sal_uInt16 db_maxkeys; /* Max. # keys pro Seite */
sal_uInt16 db_keytype; /* Art des Schluessels
(0-Text)
- (1-Numerisch) */
+ (1-Numerisch) */
sal_uInt16 db_keyrec; /* Laenge eines IndexSatzes
- SatzNr + keylen */
- sal_uInt8 db_frei1[3]; /* reserviert */
- sal_uInt8 db_unique; /* eindeutig */
- char db_name[488]; /* index_name (Feldname) */
+ SatzNr + keylen */
+ sal_uInt8 db_frei1[3]; /* reserviert */
+ sal_uInt8 db_unique; /* eindeutig */
+ char db_name[488]; /* index_name (Feldname) */
};
private:
- SvStream* m_pFileStream; // Stream zum Lesen/Schreiben des Index
- NDXHeader m_aHeader;
+ SvStream* m_pFileStream; // Stream zum Lesen/Schreiben des Index
+ NDXHeader m_aHeader;
ONDXPageList m_aCollector; // Pool von nicht mehr benoetigten Seiten
- ONDXPagePtr m_aRoot, // Wurzel des b+ Baums
- m_aCurLeaf; // aktuelles Blatt
- USHORT m_nCurNode; // Position des aktuellen Knoten
+ ONDXPagePtr m_aRoot, // Wurzel des b+ Baums
+ m_aCurLeaf; // aktuelles Blatt
+ USHORT m_nCurNode; // Position des aktuellen Knoten
- sal_uInt32 m_nPageCount,
+ sal_uInt32 m_nPageCount,
m_nRootPage;
- ODbaseTable* m_pTable;
- BOOL m_bUseCollector : 1; // Verwenden des GarbageCollectors
+ ODbaseTable* m_pTable;
+ BOOL m_bUseCollector : 1; // Verwenden des GarbageCollectors
::rtl::OUString getCompletePath();
void closeImpl();
@@ -118,14 +118,14 @@ namespace connectivity
virtual OIndexIterator* createIterator(OBoolOperator_BASE* pOp,
const OOperand_BASE* pOperand = NULL);
- void SetRootPos(sal_uInt32 nPos) {m_nRootPage = nPos;}
- void SetPageCount(sal_uInt32 nCount) {m_nPageCount = nCount;}
+ void SetRootPos(sal_uInt32 nPos) {m_nRootPage = nPos;}
+ void SetPageCount(sal_uInt32 nCount) {m_nPageCount = nCount;}
- sal_uInt32 GetRootPos() {return m_nRootPage;}
- sal_uInt32 GetPageCount() {return m_nPageCount;}
+ sal_uInt32 GetRootPos() {return m_nRootPage;}
+ sal_uInt32 GetPageCount() {return m_nPageCount;}
- BOOL IsText() const {return m_aHeader.db_keytype == 0;}
- USHORT GetMaxNodes() const {return m_aHeader.db_maxkeys;}
+ BOOL IsText() const {return m_aHeader.db_keytype == 0;}
+ USHORT GetMaxNodes() const {return m_aHeader.db_maxkeys;}
virtual BOOL Insert(sal_uInt32 nRec, const ORowSetValue& rValue);
virtual BOOL Update(sal_uInt32 nRec, const ORowSetValue&, const ORowSetValue&);