#include "CbmEnumDict.h"
#include "CbmYamlBaseTypes.h"
#include "CbmYamlProperty.h"
#include <boost/filesystem.hpp>
#include <iostream>
#include <sstream>
#include <string_view>
#include <fmt/format.h>
#include <yaml-cpp/yaml.h>
Go to the source code of this file.
|
| #define | CBM_YAML_EXTERN_DECL(type) |
| | Declare the external instantiation of the Read and Dump functions for a type.
|
| |
| #define | CBM_YAML_INSTANTIATE(type) |
| | Explicitly instantiate the Read and Dump functions for a type.
|
| |
◆ CBM_YAML_EXTERN_DECL
| #define CBM_YAML_EXTERN_DECL |
( |
| type | ) |
|
Value:
extern template std::string cbm::util::yaml::Dump::operator()<type>(const type& value, int floatPrecision); \
std::optional<YAML::EMITTER_MANIP> formatEntries);
void DoDump(const T &object, YAML::Emitter &ss, std::optional< YAML::EMITTER_MANIP > formatEntries={})
T Read(const YAML::Node &node)
Declare the external instantiation of the Read and Dump functions for a type.
- Parameters
-
| type | The type to declare the external instantiation for. |
- Note
- This macro should be used in a header file to declare the external instantiation of the Read and Dump. Must be paired with CBM_YAML_INSTANTIATE in a source file.
Definition at line 342 of file CbmYaml.h.
◆ CBM_YAML_INSTANTIATE
| #define CBM_YAML_INSTANTIATE |
( |
| type | ) |
|
Value:
template std::string cbm::util::yaml::Dump::operator()<type>(const type& value, int floatPrecision); \
std::optional<YAML::EMITTER_MANIP> formatEntries);
Explicitly instantiate the Read and Dump functions for a type.
- See also
- CBM_YAML_EXTERN_DECL
Definition at line 352 of file CbmYaml.h.