Go to the source code of this file.
◆ BDM_ASSIGN_CONFIG_DOUBLE3_VALUE
#define BDM_ASSIGN_CONFIG_DOUBLE3_VALUE |
( |
|
variable, |
|
|
|
config_key |
|
) |
| |
Value: { \
if (config->contains_qualified(config_key)) { \
auto value = config->get_array_of<
real_t>(config_key); \
if (value) { \
auto vector = *value; \
if (vector.size() == variable.size()) { \
for (uint64_t i = 0; i < vector.size(); i++) { \
variable[i] = vector[i]; \
} \
} else { \
Log::Fatal("cpptoml parameter parsing", \
"An error occurred during parameter parsing of (", \
config_key, ". Array dimensions do not match"); \
} \
} \
} \
}
Definition at line 28 of file cpptoml.h.
◆ BDM_ASSIGN_CONFIG_VALUE
#define BDM_ASSIGN_CONFIG_VALUE |
( |
|
variable, |
|
|
|
config_key |
|
) |
| |
Value: { \
if (config->contains_qualified(config_key)) { \
auto value = config->get_qualified_as<decltype(variable)>(config_key); \
if (value) { \
variable = *value; \
} \
} \
}
Definition at line 18 of file cpptoml.h.