#include "BaseTypes.h"
#include "Definitions.h"
#include "Property.h"
#include "compat/Filesystem.h"
#include "util/EnumDict.h"
#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::algo::yaml::Dump::operator()<type>(const type& value, int floatPrecision)
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 297 of file Yaml.h.
◆ CBM_YAML_INSTANTIATE
#define CBM_YAML_INSTANTIATE |
( |
| type | ) |
|
Value:
template std::string cbm::algo::yaml::Dump::operator()<type>(const type& value, int floatPrecision);
Explicitly instantiate the Read and Dump functions for a type.
- See also
- CBM_YAML_EXTERN_DECL
Definition at line 305 of file Yaml.h.