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.
| Field | Type | Meaning |
|---|---|---|
Kind | int | The type of the column's values, such as 1 for integers or 2 for reals. Group 92. |
Name | std::string | The name of the column. Group 2. |
Cells | std::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.
| Field | Type and default | Meaning |
|---|---|---|
Base | DxfIO::Base | The handle, owner, reactors and extended data. |
Version | int{2} | The version of the object, 2 as AutoCAD writes it. Group 70. |
Rows | int | The number of rows. Group 91. |
Name | std::string | The name of the table. Group 1. |
Columns | std::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.
Early | ACDBDATATABLE, as R2000 writes it. |
Current | DATATABLE, 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>;