Table of Contents

Class TableSection

Namespace
TdbIO
Assembly
TdbIO.dll

A section of fixed-size rows, as found in .db1 files (TdbIO.Db1Document.ReadTables) and in DBV@ files (TdbIO.DbvDocument.Sections). Sections represent database tables or domains; in .db1 files they are identified by their schema table number in TdbIO.TableSection.Key.

public sealed class TableSection

Inheritance

Inherited Members

Properties

Descriptors

The index descriptors of the section header. Descriptor 0 defines the primary index/cluster; descriptors 1..N indicate whether secondary indexes defined in the table schema are active (1) or inactive (0) for this table domain.

public IReadOnlyList<uint> Descriptors { get; }

Property Value

IReadOnlyList<uint>

End

The offset just after the section: after the closer when the section has a key, otherwise after the 0 byte that ends the rows.

public long End { get; }

Property Value

long

Key

The schema table number (table ID) stored before the section in .db1 files (for example, 1 for object, 3 for coordsys, 13 for point, 16 for part, 105 for object_numbering, 141 for object_phase), or null when the section has no table key (such as internal table domains, or any section in DBV@ files).

public int? Key { get; }

Property Value

int?

Offset

The offset where the section starts: the key when there is one, otherwise the separator.

public long Offset { get; }

Property Value

long

Ordinal

The position of the section in its file, from 0.

public int Ordinal { get; }

Property Value

int

RowSize

The number of body bytes in every row.

public int RowSize { get; }

Property Value

int

Rows

The rows in file order. The list is a view over the data: each row is built when it is read.

public IReadOnlyList<TableRow> Rows { get; }

Property Value

IReadOnlyList<TableRow>

RowsOffset

The offset of the first row (or of the 0 byte that ends the rows when there are none).

public long RowsOffset { get; }

Property Value

long

Methods

AsAssemblies()

Decodes all rows of this section as TdbIO.AssemblyRow (size 92).

public IReadOnlyList<AssemblyRow> AsAssemblies()

Returns

IReadOnlyList<AssemblyRow>

AsAssemblyNumberings()

Decodes all rows of this section as TdbIO.AssemblyNumberingRow (size 76).

public IReadOnlyList<AssemblyNumberingRow> AsAssemblyNumberings()

Returns

IReadOnlyList<AssemblyNumberingRow>

AsBoltHolePoints()

Decodes all rows of this section as TdbIO.BoltHolePointsRow (size 60).

public IReadOnlyList<BoltHolePointsRow> AsBoltHolePoints()

Returns

IReadOnlyList<BoltHolePointsRow>

AsBoltHoles()

Decodes all rows of this section as TdbIO.BoltHoleRow (size 48).

public IReadOnlyList<BoltHoleRow> AsBoltHoles()

Returns

IReadOnlyList<BoltHoleRow>

AsBolts()

Decodes all rows of this section as TdbIO.BoltRow (size 24).

public IReadOnlyList<BoltRow> AsBolts()

Returns

IReadOnlyList<BoltRow>

AsCoordsys()

Decodes all rows of this section as TdbIO.CoordsysRow (size 40).

public IReadOnlyList<CoordsysRow> AsCoordsys()

Returns

IReadOnlyList<CoordsysRow>

AsNumAttrAttrs()

Decodes all rows of this section as TdbIO.NumAttrAttrRow (size 44).

public IReadOnlyList<NumAttrAttrRow> AsNumAttrAttrs()

Returns

IReadOnlyList<NumAttrAttrRow>

AsNumAttrs()

Decodes all rows of this section as TdbIO.NumAttrRow (size 24).

public IReadOnlyList<NumAttrRow> AsNumAttrs()

Returns

IReadOnlyList<NumAttrRow>

AsObjectModifications()

Decodes all rows of this section as TdbIO.ObjectModificationRow (size 20).

public IReadOnlyList<ObjectModificationRow> AsObjectModifications()

Returns

IReadOnlyList<ObjectModificationRow>

AsObjectNumberings()

Decodes all rows of this section as TdbIO.ObjectNumberingRow (size 12).

public IReadOnlyList<ObjectNumberingRow> AsObjectNumberings()

Returns

IReadOnlyList<ObjectNumberingRow>

AsObjectPhases()

Decodes all rows of this section as TdbIO.ObjectPhaseRow (size 8).

public IReadOnlyList<ObjectPhaseRow> AsObjectPhases()

Returns

IReadOnlyList<ObjectPhaseRow>

AsObjects()

Decodes all rows of this section as TdbIO.ObjectRow (size 72).

public IReadOnlyList<ObjectRow> AsObjects()

Returns

IReadOnlyList<ObjectRow>

AsPartAttrs()

Decodes all rows of this section as TdbIO.PartAttrRow (size 372).

public IReadOnlyList<PartAttrRow> AsPartAttrs()

Returns

IReadOnlyList<PartAttrRow>

AsPartNumberings()

Decodes all rows of this section as TdbIO.PartNumberingRow (size 68).

public IReadOnlyList<PartNumberingRow> AsPartNumberings()

Returns

IReadOnlyList<PartNumberingRow>

AsParts()

Decodes all rows of this section as TdbIO.PartRow (size 64).

public IReadOnlyList<PartRow> AsParts()

Returns

IReadOnlyList<PartRow>

AsPoints()

Decodes all rows of this section as TdbIO.PointRow (size 32).

public IReadOnlyList<PointRow> AsPoints()

Returns

IReadOnlyList<PointRow>

AsRelations()

Decodes all rows of this section as TdbIO.RelationRow (size 60).

public IReadOnlyList<RelationRow> AsRelations()

Returns

IReadOnlyList<RelationRow>

AsStrAttrAttrs()

Decodes all rows of this section as TdbIO.StrAttrAttrRow (size 120).

public IReadOnlyList<StrAttrAttrRow> AsStrAttrAttrs()

Returns

IReadOnlyList<StrAttrAttrRow>

AsStrAttrs()

Decodes all rows of this section as TdbIO.StrAttrRow (size 24).

public IReadOnlyList<StrAttrRow> AsStrAttrs()

Returns

IReadOnlyList<StrAttrRow>

AsStringPool()

Decodes all rows of this section as TdbIO.StringPoolRow (size 45).

public IReadOnlyList<StringPoolRow> AsStringPool()

Returns

IReadOnlyList<StringPoolRow>

AsWeldings()

Decodes all rows of this section as TdbIO.WeldingRow (size 24).

public IReadOnlyList<WeldingRow> AsWeldings()

Returns

IReadOnlyList<WeldingRow>