ores.cpp.domain.table_io_header

Table of Contents

Table IO declarations. domain profile. Streaming `operator<<` overload for widget display and debug logging; implemented in the `table` facet alongside the adapter.

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_io.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_IO_HPP
#define ORES_{{component_include_upper}}_DOMAIN_{{entity_singular_upper}}_TABLE_IO_HPP

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

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

/**
 * @brief Dumps the {{entity_singular}} objects to a stream in table format.
 */
ORES_{{component_include_upper}}_EXPORT std::ostream& operator<<(std::ostream& s, const std::vector<{{entity_singular}}>& v);

}

#endif
{{/domain_entity}}
{{#junction}}
#ifndef ORES_{{component_include_upper}}_DOMAIN_{{name_singular_upper}}_TABLE_IO_HPP
#define ORES_{{component_include_upper}}_DOMAIN_{{name_singular_upper}}_TABLE_IO_HPP

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

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

/**
 * @brief Dumps the {{name_singular}} objects to a stream in table format.
 */
ORES_{{component_include_upper}}_EXPORT std::ostream& operator<<(std::ostream& s, const std::vector<{{name_singular}}>& v);

}

#endif
{{/junction}}

See also

Emacs 29.3 (Org mode 9.6.15)