ores.cpp.domain.table_header

Table of Contents

Table adapter declarations. domain 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_domain_type_table.hpp.mustache.

{{! GENERATED FILE — tangled from projects/ores.codegen/library/templates/cpp_table.org. Edit the org source. }}
{{{cpp_license}}}
{{#domain_entity}}
#ifndef ORES_{{component_include_upper}}_DOMAIN_{{entity_singular_upper}}_TABLE_HPP
#define ORES_{{component_include_upper}}_DOMAIN_{{entity_singular_upper}}_TABLE_HPP

#include <string>
#include <vector>
#include "ores.{{component_include}}/domain/{{entity_singular}}.hpp"
#include "ores.{{component_include}}/export.hpp"

namespace ores::{{component}}::domain {

/**
 * @brief Converts {{entity_plural}} to the table format.
 */
ORES_{{component_include_upper}}_EXPORT std::string convert_to_table(const std::vector<{{entity_singular}}>& v);

}

#endif
{{/domain_entity}}
{{#junction}}
#ifndef ORES_{{component_upper}}_DOMAIN_{{name_singular_upper}}_TABLE_HPP
#define ORES_{{component_upper}}_DOMAIN_{{name_singular_upper}}_TABLE_HPP

#include <string>
#include <vector>
#include "ores.{{component_include}}/domain/{{name_singular}}.hpp"
#include "ores.{{component_include}}/export.hpp"

namespace ores::{{component}}::domain {

/**
 * @brief Converts {{name}} to the table format.
 */
ORES_{{component_include_upper}}_EXPORT std::string convert_to_table(const std::vector<{{name_singular}}>& v);

}

#endif
{{/junction}}

See also

Emacs 29.3 (Org mode 9.6.15)