model¶
The model: cards, column storage, containers, handles, editing, control sections.
Headers:
include/oor/model/. Sources: this folder. Tests:tests/cpp/model/.May use:
deck,io,base(checked bytools/check_layering.py).Start reading at
core/Model.hpp.The Case Control is in
control/case_control/:CaseControl,Subcase,CaseEntry,CommandCatalogueand the family functions ofcommands/, the parser and the writer.The Executive Control and the File Management are in
control/executive_control/andcontrol/file_management/, on the statement classes shared incontrol/statement/:ExecutiveControl,FileManagement,ControlStatement,StatementParameter, the statement definitions, the reader and the writer.The design model is in
design/(DesignModel,applyDesign, and the registry of the card types a design relation can drive,DesignableCards.cpp; the functions of each card type are next to the card,<Card>DesignFields.cpp).The model file (
.oos):core/ModelFileReader.hppandcore/ModelFileWriter.hpp; the card layouts that map the fields of a record to the slots a card reader reads,format/CardLayouts.hpp(the catalogueformats/oos-layouts.json, compiled in; made bytools/oos_layouts/, listed indocs/model-format-cards.md); the records of the control sections,control/ControlRecords.hpp.format/FieldValue.hppcarries typed slot values.FieldWriter::typedFields()exposes binary numeric output; the typedFieldReaderconstructor accepts archive values without decimal conversion. The native archive uses the same card readers and tables as.oosinput.
The native .ooh5 reader/writer lives in results/archive/ArchiveModel.cpp, above this module in the dependency
order. The facade api::Deck::readModel detects either format by content. See
the archive specification for the versioned slot contract, sparse and
constant columns, source precision and pending defaults masks.