20#ifndef GENERATED_TABLE_SCHEMA_H
21#define GENERATED_TABLE_SCHEMA_H
110 int aDefaultPrecision );
112 const std::vector<GENERATED_TABLE_COLUMN_DEF>&
Defs()
const {
return m_defs; }
121 const char*
Token(
int aId )
const;
124 std::vector<GENERATED_TABLE_COLUMN>
Defaults()
const;
132 bool Validate( std::vector<GENERATED_TABLE_COLUMN>& aColumns )
const;
138 std::vector<GENERATED_TABLE_COLUMN_DEF>
m_defs;
const char * Token(int aId) const
The file token for a known id, or a stable placeholder for one the schema does not recognize,...
GENERATED_TABLE_COLUMN DefaultColumn(int aId) const
std::vector< GENERATED_TABLE_COLUMN > Defaults() const
GENERATED_TABLE_UNITS m_defaultUnits
const std::vector< GENERATED_TABLE_COLUMN_DEF > & Defs() const
const GENERATED_TABLE_COLUMN_DEF * FindToken(const wxString &aToken) const
const GENERATED_TABLE_COLUMN_DEF * Find(int aId) const
GENERATED_TABLE_SCHEMA(std::vector< GENERATED_TABLE_COLUMN_DEF > aDefs, GENERATED_TABLE_UNITS aDefaultUnits, int aDefaultPrecision)
GENERATED_TABLE_UNITS DefaultUnits() const
bool Validate(std::vector< GENERATED_TABLE_COLUMN > &aColumns) const
Drop a column whose id the schema does not know and a column that repeats an id already kept,...
int DefaultPrecision() const
std::vector< GENERATED_TABLE_COLUMN_DEF > m_defs
LSET is a set of PCB_LAYER_IDs.
GENERATED_TABLE_UNITS ToGeneratedTableUnits(EDA_UNITS aUnits)
The table units a user's display units seed.
bool GeneratedTableUnitsFromToken(const wxString &aToken, GENERATED_TABLE_UNITS &aUnits)
const char * GeneratedTableUnitsToken(GENERATED_TABLE_UNITS aUnits)
Stable file tokens, independent of enum ordering so inserting a value later cannot change what an exi...
LSET DocumentationLayers()
Layers a generated table or drill map may live on.
wxString FormatGeneratedTableLength(int aValue, GENERATED_TABLE_UNITS aUnits, int aPrecision)
Render a length the way a generated table's cell shows it.
bool GeneratedTableAlignFromToken(const wxString &aToken, GENERATED_TABLE_ALIGN &aAlign)
constexpr int GENERATED_TABLE_MAX_COLUMN_WIDTH
A column can be no wider than this.
constexpr int64_t GENERATED_TABLE_MAX_TOTAL_WIDTH
A column set can be no wider than this in total, summed after each column is clamped to GENERATED_TAB...
constexpr int GENERATED_TABLE_MAX_PRECISION
The most digits a generated table prints after the decimal point.
const char * GeneratedTableAlignToken(GENERATED_TABLE_ALIGN aAlign)
The column a schema knows how to build, independent of whether any particular table shows it.
GENERATED_TABLE_ALIGN m_Align
A column as a generated table actually carries it: what a row's cell in that column holds and how it ...
GENERATED_TABLE_ALIGN m_Align
bool operator==(const GENERATED_TABLE_COLUMN &aOther) const =default
static const long long MM