Archetype: cpp_service_config_options.cpp.mustache

Table of Contents

Typed option set for the service. component-service profile.

See the Template variable reference for the complete list of available variables and their semantics.

Template

The full template source. Edit here and re-tangle with compass build --direct tangle_codegen_templates to regenerate library/templates/cpp_service_config_options.cpp.mustache.

{{! GENERATED FILE — tangled from projects/ores.codegen/library/templates/cpp_service_app.org. Edit the org source. }}
{{{cpp_license}}}
{{#component}}
#include "{{full_name}}/config/options.hpp"

#include <rfl.hpp>
#include <rfl/json.hpp>

namespace {{namespace}}::config {

std::ostream& operator<<(std::ostream& s, const options& v) {
    rfl::json::write(v, s);
    return s;
}

}
{{/component}}

See also

Emacs 29.1 (Org mode 9.6.6)