25#ifndef EASYPC_CLASSES_ROOT_H
26#define EASYPC_CLASSES_ROOT_H
74 auto it =
Values.find( aId );
75 return it !=
Values.end() && it->second != 0;
106 int32_t
Param(
int aIndex, int32_t aDefault = 0 )
const
108 return aIndex >= 0 && aIndex < static_cast<int>(
Params.size() ) ?
Params[aIndex] : aDefault;
One archive load stream; it owns every object it creates.
A loader coroutine. Awaiting one queues it on its archive's frame stack instead of nesting the call.
Design items, attributes, styles, layers, net classes and spacings.
DESIGN_PARAM_INDEX
Indices into the design parameter table.
@ DP_MIRROR_PAD_STYLE_EXCEPTIONS
@ DP_MIN_VIA_ANNULAR_RING
@ DP_MIN_SOLDER_MASK_WIDTH
@ DP_MIN_SOLDER_MASK_TO_TRACK
LOAD_TASK SkipMember(ARCHIVE &aAr, const char *aClass, bool aDesignOwned)
Load and drop an embedded member of a registered class; aDesignOwned marks its design as owner.
POINT32 ReadPoint(ARCHIVE &aAr)
A member stored inside the design.
LOAD_TASK Load(ARCHIVE &aAr) override
Read this object's fields.
int ItemFormat(const ARCHIVE &aAr) const override
The version this object gates on; the base is the archive's current read format.
Root of every deserialized object.
A point read as two int32 values.
A map of DRC switch id to value.
LOAD_TASK Load(ARCHIVE &aAr) override
Read this object's fields.
bool IsChecking(int32_t aId) const
std::map< int32_t, int32_t > Values
LOAD_TASK Load(ARCHIVE &aAr) override
Read this object's fields.
A design data member: owner tag only.
The base of nearly every class.
int32_t Param(int aIndex, int32_t aDefault=0) const
The value at aIndex, or aDefault where the stored array is shorter, as the accessors do.
std::vector< int32_t > Params
LOAD_TASK Load(ARCHIVE &aAr) override
Read this object's fields.
The document: OLE items, then the design.
LOAD_TASK Load(ARCHIVE &aAr) override
Read this object's fields.
OBJECT * Spacings
legacy or current design spacings, depending on format
SOURCE_CHECK_PARAMETERS DrcParameters
from 13000
SOURCE_DESIGN_PARAMETERS DesignParameters
after 8000
int ItemFormat(const ARCHIVE &aAr) const override
The version this object gates on; the base is the archive's current read format.
SOURCE_DEFAULTS * Defaults
OBJECT * ComponentInstances