ores.cpp.history-provider-registrar.history_provider_registrar_header
Table of Contents
Per-entity history-provider registrar header. Declares
register_<entity>_history_provider(), which the per-component
service registrar calls with its ores::history::service::dispatch_registry
instance so the entity's provider joins the generic
history.v1.get dispatch.
The header needs only the registry's own header. The service and mapper headers stay in the implementation, so a compile failure in one entity's service or mapper cannot leak into every other registrar.
See the Template variable reference for the complete list of available variables and their semantics.
1. Template
The full template source. Edit here and re-tangle with
compass build --direct tangle_codegen_templates to regenerate
library/templates/cpp_history_provider_registrar.hpp.mustache.
{{! GENERATED FILE — tangled from projects/ores.codegen/library/templates/ores.cpp.history-provider-registrar.history_provider_registrar_header.org. Edit the org source. }}
{{{cpp_license}}}
{{#domain_entity}}
#ifndef ORES_{{component_core_upper}}_MESSAGING_{{entity_singular_upper}}_HISTORY_PROVIDER_REGISTRAR_HPP
#define ORES_{{component_core_upper}}_MESSAGING_{{entity_singular_upper}}_HISTORY_PROVIDER_REGISTRAR_HPP
#include "ores.history.core/service/dispatch_registry.hpp"
namespace ores::{{component}}::messaging {
void register_{{entity_singular}}_history_provider(
ores::history::service::dispatch_registry& registry);
} // namespace ores::{{component}}::messaging
#endif
{{/domain_entity}}
2. See also
- Parent facet: ores.cpp.history-provider-registrar
- Template variable reference
- ores.cpp.history-provider-registrar.history_provider_registrar_implementation — the paired implementation.