#include "eon/ParametersJSON.h"#include "eon/HelperFunctions.h"#include "eon/Parameters.h"#include "eon/ParametersINI.h"#include "magic_enum/magic_enum.hpp"#include <cctype>#include <format>#include <nlohmann/json.hpp>#include <stdexcept>Go to the source code of this file.
Namespaces | |
| namespace | eonc |
| RAII resource manager for the ARTn C library with global synchronization. | |
| namespace | eonc::config |
Macros | |
| #define | JSON_OPT(j, key, target) |
Typedefs | |
| using | json = nlohmann::json |
Functions | |
| template<typename E> | |
| static json | enum_to_json (E val) |
| template<typename E> | |
| static E | enum_from_json (const json &j, E fallback) |
| json | eonc::config::to_json (const Parameters ¶ms) |
| Serialize all Parameters to JSON. | |
| void | eonc::config::from_json (const nlohmann::json &j, Parameters ¶ms) |
| Deserialize JSON into Parameters, then resolve computed fields. | |
| int | eonc::config::load_json (const std::string &json_str, Parameters ¶ms) |
| Load Parameters from a JSON string. Returns 0 on success. | |
| #define JSON_OPT | ( | j, | |
| key, | |||
| target ) |
Definition at line 40 of file ParametersJSON.cpp.
| using json = nlohmann::json |
Definition at line 23 of file ParametersJSON.cpp.
|
static |
Definition at line 30 of file ParametersJSON.cpp.
|
static |
Definition at line 26 of file ParametersJSON.cpp.