#include <configuration.h>
Convert from YAML::Node to SMASH-readable (C++) format and vice versa.
T | Type of the values (could be any data type that needs conversion). |
Definition at line 37 of file configuration.h.
Static Public Member Functions | |
static Node | encode (const T &x) |
Serialization: Converts x (of any type) to a YAML::Node. More... | |
static bool | decode (const Node &node, T &x) |
Deserialization: Converts a YAML::Node to any SMASH-readable data type and returns whether or not this operation was successful. More... | |
|
inlinestatic |
Serialization: Converts x (of any type) to a YAML::Node.
To do this, the type of x needs first be cast to a string.
[in] | x | Value that is to be converted to a YAML::Node. |
Definition at line 45 of file configuration.h.
|
inlinestatic |
Deserialization: Converts a YAML::Node to any SMASH-readable data type and returns whether or not this operation was successful.
[in] | node | YAML::Node that is to be converted. |
[in] | x | Value that the YAML:Node is cast to. |
Definition at line 55 of file configuration.h.