Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
8b32c721
Kaydet (Commit)
8b32c721
authored
Şub 22, 2012
tarafından
Philipp Weissenbacher
Kaydeden (comit)
Stefan Knorr (astron)
Şub 27, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Translate comments to German and fix some whitespace
üst
bacf45b7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
67 additions
and
68 deletions
+67
-68
DCode.hxx
connectivity/source/inc/dbase/DCode.hxx
+1
-1
DIndex.hxx
connectivity/source/inc/dbase/DIndex.hxx
+23
-24
DTable.hxx
connectivity/source/inc/dbase/DTable.hxx
+22
-22
dindexnode.hxx
connectivity/source/inc/dbase/dindexnode.hxx
+21
-21
No files found.
connectivity/source/inc/dbase/DCode.hxx
Dosyayı görüntüle @
8b32c721
...
...
@@ -50,7 +50,7 @@ namespace connectivity
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
container
::
XNameAccess
>&
_xIndexes
=
NULL
);
};
// Attribute
aus einer Ergebniszeile
// Attribute
s from a result row
class
OFILEOperandAttr
:
public
file
::
OOperandAttr
{
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertySet
>
m_xIndex
;
...
...
connectivity/source/inc/dbase/DIndex.hxx
Dosyayı görüntüle @
8b32c721
...
...
@@ -59,43 +59,42 @@ namespace connectivity
public
:
//==================================================================
//
Kopfsatz-Struktur, verbleibt im Speicher
//
Header struct - stays in memory
//==================================================================
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_uInt16
db_keytype
;
/*
Art des Schluessels
(0-Text)
(1-Numerisch)
*/
sal_uInt16
db_keyrec
;
/* L
aenge eines IndexSatzes
SatzNr + keylen
*/
sal_uInt8
db_frei1
[
3
];
/*
reserviert
*/
sal_uInt8
db_unique
;
/*
eindeutig
*/
char
db_name
[
488
];
/* index_name
(Feldname)
*/
sal_uInt32
db_rootpage
;
/*
Rootpage position
*/
sal_uInt32
db_pagecount
;
/*
Page count
*/
sal_uInt8
db_frei
[
4
];
/*
Reserved
*/
sal_uInt16
db_keylen
;
/*
Key length
*/
sal_uInt16
db_maxkeys
;
/* Max
imum number of keys per page
*/
sal_uInt16
db_keytype
;
/*
Type of key:
0 = Text
1 = Numerical
*/
sal_uInt16
db_keyrec
;
/* L
ength of an index record
RecordNumber + keylen
*/
sal_uInt8
db_frei1
[
3
];
/*
Reserved
*/
sal_uInt8
db_unique
;
/*
Unique
*/
char
db_name
[
488
];
/* index_name
(field name)
*/
};
private
:
SvStream
*
m_pFileStream
;
// Stream
zum Lesen/Schreiben des I
ndex
SvStream
*
m_pFileStream
;
// Stream
to read/write the i
ndex
NDXHeader
m_aHeader
;
ONDXPageList
m_aCollector
;
// Pool
von nicht mehr benoetigten Seiten
ONDXPagePtr
m_aRoot
,
//
Wurzel des b+ Baums
m_aCurLeaf
;
// aktuelles Blatt
sal_uInt16
m_nCurNode
;
// Position des aktuellen Knoten
ONDXPageList
m_aCollector
;
// Pool
of obsolete pages
ONDXPagePtr
m_aRoot
,
//
Root of the B+ tree
m_aCurLeaf
;
// Current leaf
sal_uInt16
m_nCurNode
;
// Position of the current node
sal_uInt32
m_nPageCount
,
sal_uInt32
m_nPageCount
,
m_nRootPage
;
ODbaseTable
*
m_pTable
;
sal_Bool
m_bUseCollector
:
1
;
// Verwenden des GarbageCollectors
sal_Bool
m_bUseCollector
:
1
;
// Use the Garbage Collector
::
rtl
::
OUString
getCompletePath
();
void
closeImpl
();
/* closes and kill the index file and throws an error.
*/
// Closes and kills the index file and throws an error
void
impl_killFileAndthrowError_throw
(
sal_uInt16
_nErrorId
,
const
::
rtl
::
OUString
&
_sFile
);
protected
:
virtual
~
ODbaseIndex
();
...
...
@@ -145,7 +144,7 @@ namespace connectivity
sal_Bool
isUnique
()
const
{
return
m_IsUnique
;
}
sal_Bool
UseCollector
()
const
{
return
m_bUseCollector
;}
// Tree operation
en
// Tree operation
s
void
Insert
(
ONDXPagePtr
aCurPage
,
ONDXNode
&
rNode
);
void
Release
(
sal_Bool
bSave
=
sal_True
);
sal_Bool
ConvertToKey
(
ONDXKey
*
rKey
,
sal_uInt32
nRec
,
const
ORowSetValue
&
rValue
);
...
...
connectivity/source/inc/dbase/DTable.hxx
Dosyayı görüntüle @
8b32c721
...
...
@@ -47,13 +47,13 @@ namespace connectivity
class
ODbaseTable
:
public
ODbaseTable_BASE
{
// der Typ einer dBase datei wird mit dem ersten Byte bestimmt
// The first byte of a dBase file specifies its type
public
:
enum
DBFType
{
dBaseIII
=
0x03
,
dBaseIV
=
0x04
,
dBaseV
=
0x05
,
VisualFoxPro
=
0x30
,
VisualFoxProAuto
=
0x31
,
// Visual FoxPro w
.
AutoIncrement field
VisualFoxProAuto
=
0x31
,
// Visual FoxPro w
ith
AutoIncrement field
dBaseFS
=
0x43
,
dBaseFSMemo
=
0xB3
,
dBaseIIIMemo
=
0x83
,
...
...
@@ -67,32 +67,32 @@ namespace connectivity
};
private
:
struct
DBFHeader
{
/*
Kopfsatz-Struktur
*/
DBFType
db_typ
;
/* Dateityp
*/
sal_uInt8
db_aedat
[
3
];
/* Datum der letzen Aenderung
*/
/* JJ MM TT
*/
sal_uInt32
db_anz
;
/* Anzahl der Saetze
*/
sal_uInt16
db_kopf
;
/*
laenge Kopfsatz-Struktur
*/
sal_uInt16
db_slng
;
/*
laenge der Daten-Saetze
*/
sal_uInt8
db_frei
[
20
];
/* reserviert
*/
struct
DBFHeader
{
/*
Header struct
*/
DBFType
db_typ
;
/* File type
*/
sal_uInt8
db_aedat
[
3
];
/* Date of last change
*/
/* JJ MM DD
*/
sal_uInt32
db_anz
;
/* Data set count
*/
sal_uInt16
db_kopf
;
/*
Header length
*/
sal_uInt16
db_slng
;
/*
Data set length
*/
sal_uInt8
db_frei
[
20
];
/* Reserved
*/
};
struct
DBFColumn
{
/*
Feldbezeichner
*/
sal_uInt8
db_fnm
[
11
];
/* F
eldname
*/
sal_uInt8
db_typ
;
/* F
eldtyp
*/
sal_uInt32
db_adr
;
/* Feldadresse
*/
sal_uInt8
db_flng
;
/* F
eldlaenge
*/
sal_uInt8
db_dez
;
/* De
zimalstellen fue
r N */
sal_uInt8
db_frei2
[
14
];
/*
reserviert
*/
struct
DBFColumn
{
/*
Column descriptors
*/
sal_uInt8
db_fnm
[
11
];
/* F
ield name
*/
sal_uInt8
db_typ
;
/* F
ield type
*/
sal_uInt32
db_adr
;
/* Field address
*/
sal_uInt8
db_flng
;
/* F
ield length
*/
sal_uInt8
db_dez
;
/* De
cimal places fo
r N */
sal_uInt8
db_frei2
[
14
];
/*
Reserved
*/
};
struct
DBFMemoHeader
{
DBFMemoType
db_typ
;
/* Dateityp
*/
sal_uInt32
db_next
;
/*
naechster freier Block
*/
sal_uInt16
db_size
;
/* Block
groesse: dBase 3 fest
*/
DBFMemoType
db_typ
;
/* File type
*/
sal_uInt32
db_next
;
/*
Next free block
*/
sal_uInt16
db_size
;
/* Block
size: dBase 3 fixed
*/
};
::
std
::
vector
<
sal_Int32
>
m_aTypes
;
// holds all type for columns just to avoid to ask the propertyset
::
std
::
vector
<
sal_Int32
>
m_aPrecisions
;
// same as abo
th
::
std
::
vector
<
sal_Int32
>
m_aTypes
;
// holds all type
s
for columns just to avoid to ask the propertyset
::
std
::
vector
<
sal_Int32
>
m_aPrecisions
;
// same as abo
ve
::
std
::
vector
<
sal_Int32
>
m_aScales
;
::
std
::
vector
<
sal_Int32
>
m_aRealFieldLengths
;
DBFHeader
m_aHeader
;
...
...
connectivity/source/inc/dbase/dindexnode.hxx
Dosyayı görüntüle @
8b32c721
...
...
@@ -51,8 +51,8 @@ namespace connectivity
class
ONDXKey
:
public
ONDXKey_BASE
{
friend
class
ONDXNode
;
sal_uInt32
nRecord
;
/* Satzzeiger
*/
ORowSetValue
xValue
;
/*
Schluesselwert
*/
sal_uInt32
nRecord
;
/* Record pointer
*/
ORowSetValue
xValue
;
/*
Key values
*/
public
:
ONDXKey
(
sal_uInt32
nRec
=
0
);
...
...
@@ -91,9 +91,9 @@ namespace connectivity
//==================================================================
// Index
Seitenverweis
// Index
Page Pointer
//==================================================================
SV_DECL_REF
(
ONDXPage
)
// Bas
isklasse da weitere Informationen gehalten werden muesse
n
SV_DECL_REF
(
ONDXPage
)
// Bas
e class - because we need to store additional informatio
n
class
ONDXPagePtr
:
public
ONDXPageRef
...
...
@@ -101,7 +101,7 @@ namespace connectivity
friend
SvStream
&
operator
<<
(
SvStream
&
rStream
,
const
ONDXPagePtr
&
);
friend
SvStream
&
operator
>>
(
SvStream
&
rStream
,
ONDXPagePtr
&
);
sal_uInt32
nPagePos
;
// Position in
der Indexdatei
sal_uInt32
nPagePos
;
// Position in
the index file
public
:
ONDXPagePtr
(
sal_uInt32
nPos
=
0
)
:
nPagePos
(
nPos
){}
...
...
@@ -116,7 +116,7 @@ namespace connectivity
// sal_Bool Is() const { return isValid(); }
};
//==================================================================
// Index
Seit
e
// Index
Pag
e
//==================================================================
class
ONDXPage
:
public
SvRefBase
{
...
...
@@ -125,17 +125,17 @@ namespace connectivity
friend
SvStream
&
operator
<<
(
SvStream
&
rStream
,
const
ONDXPage
&
);
friend
SvStream
&
operator
>>
(
SvStream
&
rStream
,
ONDXPage
&
);
sal_uInt32
nPagePos
;
// Position in der Indexdatei
sal_uInt32
nPagePos
;
// Position in the index file
sal_Bool
bModified
:
1
;
sal_uInt16
nCount
;
ONDXPagePtr
aParent
,
//
VaterSeit
e
aChild
;
//
Zeiger auf rechte ChildP
age
ONDXPagePtr
aParent
,
//
Parent pag
e
aChild
;
//
Pointer to the right child p
age
ODbaseIndex
&
rIndex
;
ONDXNode
*
ppNodes
;
//
array von Knoten
ONDXNode
*
ppNodes
;
//
Array of nodes
public
:
//
Knoten Operationen
//
Node operations
sal_uInt16
Count
()
const
{
return
nCount
;}
sal_Bool
Insert
(
ONDXNode
&
rNode
,
sal_uInt32
nRowsLeft
=
0
);
...
...
@@ -146,11 +146,11 @@ namespace connectivity
void
Release
(
sal_Bool
bSave
=
sal_True
);
void
ReleaseFull
(
sal_Bool
bSave
=
sal_True
);
//
Aufteilen und Zerlegen
//
Split and merge
ONDXNode
Split
(
ONDXPage
&
rPage
);
void
Merge
(
sal_uInt16
nParentNodePos
,
ONDXPagePtr
xPage
);
//
Zugriffsoperationen
//
Access operators
ONDXNode
&
operator
[]
(
sal_uInt16
nPos
);
const
ONDXNode
&
operator
[]
(
sal_uInt16
nPos
)
const
;
...
...
@@ -165,12 +165,12 @@ namespace connectivity
sal_uInt32
GetPagePos
()
const
{
return
nPagePos
;}
ONDXPagePtr
&
GetChild
(
ODbaseIndex
*
pIndex
=
0
);
// Parent
braucht nicht nachgeladen zu werden
// Parent
does not need to be reloaded
ONDXPagePtr
GetParent
();
ODbaseIndex
&
GetIndex
()
{
return
rIndex
;}
const
ODbaseIndex
&
GetIndex
()
const
{
return
rIndex
;}
// Set
zen des Childs, ueber Referenz, um die PagePos zu erhalten
// Set
ting the child, via reference to retain the PagePos
void
SetChild
(
ONDXPagePtr
aCh
);
void
SetParent
(
ONDXPagePtr
aPa
);
...
...
@@ -187,7 +187,7 @@ namespace connectivity
void
SetModified
(
sal_Bool
bMod
)
{
bModified
=
bMod
;}
void
SetPagePos
(
sal_uInt32
nPage
)
{
nPagePos
=
nPage
;}
sal_Bool
Find
(
const
ONDXKey
&
);
//
rek. Abstieg
sal_Bool
Find
(
const
ONDXKey
&
);
//
Descend recursively
sal_uInt16
FindPos
(
const
ONDXKey
&
rKey
)
const
;
#if OSL_DEBUG_LEVEL > 1
...
...
@@ -225,12 +225,12 @@ namespace connectivity
typedef
::
std
::
vector
<
ONDXPage
*>
ONDXPageList
;
//==================================================================
// Index
Knoten
// Index
Node
//==================================================================
class
ONDXNode
{
friend
class
ONDXPage
;
ONDXPagePtr
aChild
;
/*
naechster Seitenverweis
*/
ONDXPagePtr
aChild
;
/*
Next page reference
*/
ONDXKey
aKey
;
public
:
...
...
@@ -239,15 +239,15 @@ namespace connectivity
ONDXPagePtr
aPagePtr
=
ONDXPagePtr
())
:
aChild
(
aPagePtr
),
aKey
(
rKey
)
{}
//
verweist der Knoten auf eine Seite
//
Does the node point to a page?
sal_Bool
HasChild
()
const
{
return
aChild
.
HasPage
();}
// I
st ein Index angegeben, kann gegebenfalls die Seite nachgeladen werden
// I
f an index is provided, we may be able to retrieve the page
ONDXPagePtr
&
GetChild
(
ODbaseIndex
*
pIndex
=
NULL
,
ONDXPage
*
=
NULL
);
const
ONDXKey
&
GetKey
()
const
{
return
aKey
;}
ONDXKey
&
GetKey
()
{
return
aKey
;}
// Set
zen des Childs, ueber Referenz, um die PagePos zu erhalten
// Set
ting the child, via reference to retain the PagePos
void
SetChild
(
ONDXPagePtr
aCh
=
ONDXPagePtr
(),
ONDXPage
*
=
NULL
);
void
SetKey
(
ONDXKey
&
rKey
)
{
aKey
=
rKey
;}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment