C++ table templates
Table of Contents
This page is the literate source for the cpp_table facet of the
codegen template library. Each section documents one template and
holds its source in a mustache block tangled to the sibling
.mustache file consumed by generator.py. The .mustache files are
generated artefacts — edit this document, then run the tangle
(compass build --direct tangle_codegen_templates or
projects/ores.lisp/src/ores-build-codegen-templates.el directly).
Output paths and profile membership come from
facet_catalogue.org.
Summary
Two hpp/cpp pairs rendering entity collections as libfort tables —
the adapter and its stream IO. domain profile.
The cpp_table facet
The textual presentation of the entity: shared by the CLI and shell
front-ends, kept apart from cpp_domain because presentation evolves
on a different axis from the value type (column selection, widths,
formatting).
Archetypes
| Archetype | Description |
|---|---|
| cpp_domain_type_table.cpp.mustache | libfort tabular rendering of entity collections. domain profile. |
| cpp_domain_type_table.hpp.mustache | Table adapter declarations. domain profile. |
| cpp_domain_type_table_io.cpp.mustache | Stream operators for the table adapter. domain profile. |
| cpp_domain_type_table_io.hpp.mustache | Table IO declarations. domain profile. |
See also
- (Parent template group doc:
<group>_group.org.) - Codegen template library — the groups overview.
- Facet — the MASD concept these templates project.
- Type definition facet — the facet's modeling reference.
- Applied MASD — the facet catalogue and codegen routes.
- facet_catalogue.org — profile → template/output mapping.