Objects

objects/datatable

#include "dxfio/objects/datatable.hpp"

In DxfIO::Objects

struct Column

One column of a data table, its cells kept as the groups they came in.

FieldTypeMeaning
KindintThe type of the column's values, such as 1 for integers or 2 for reals. Group 92.
Namestd::stringThe name of the column. Group 2.
Cellsstd::vector<DxfIO::Group>The cells of the column, top to bottom, as groups whose code tells the type of each value.

struct DataTableOf

template <Edition KindV>

A data table: values in named columns, row by row, written as ACDBDATATABLE or DATATABLE by release.

FieldType and defaultMeaning
BaseDxfIO::BaseThe handle, owner, reactors and extended data.
Versionint{2}The version of the object, 2 as AutoCAD writes it. Group 70.
RowsintThe number of rows. Group 91.
Namestd::stringThe name of the table. Group 1.
Columnsstd::vector<Column>The columns, left to right; their count is group 90.

enum class Edition

Which name a data table goes by: it is ACDBDATATABLE in R2000 and DATATABLE after it.

EarlyACDBDATATABLE, as R2000 writes it.
CurrentDATATABLE, as R2004 and later write it.

using DataTable

A DATATABLE, the name from R2004.

using DataTable = DataTableOf<Edition::Current>;

using AcDbDataTable

An ACDBDATATABLE, the name in R2000.

using AcDbDataTable = DataTableOf<Edition::Early>;