Codegen entity meta-model — C++ presentation

Table of Contents

This page is a segment of the Codegen org-entity meta-model hub, covering the ores.cpp.presentation facet — the smallest facet on this hub after C++ Domain. It exists to answer one question: when the Qt history dialog shows "what changed between version 3 and version 4", what does it show, and in what order?

Physical model mapping

Facet Description
ores.cpp.presentation Server-side rendering of a domain type for display: history field mapper.

What gets generated, unconditionally

A history field mapper: a function rendering the entity to an ordered list of (field name, value) pairs, in mapper order, with no runtime reflection. The Keys and columns declarations drive the field list directly — there is nothing further to configure.

Generates, in badge_definition_history_field_mapper.hpp:

namespace ores::dq::presentation {

/**
 * @brief Renders a badge_definition to an ordered field list for
 * history-diff display. One line per field, in mapper order; no
 * runtime reflection.
 */
[[nodiscard]] ORES_DQ_CORE_EXPORT std::vector<ores::diff::domain::field_value>
render_badge_definition_fields(const domain::badge_definition& v);

}

No paste blocks or behavioural knobs exist for this facet today.

See also

Emacs 29.3 (Org mode 9.6.15)