Loading...
Searching...
No Matches
ParametersJSON.h File Reference
#include <nlohmann/json.hpp>
#include <string>

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

Functions

json eonc::config::to_json (const Parameters &params)
 Serialize all Parameters to JSON.
void eonc::config::from_json (const nlohmann::json &j, Parameters &params)
 Deserialize JSON into Parameters, then resolve computed fields.
int eonc::config::load_json (const std::string &json_str, Parameters &params)
 Load Parameters from a JSON string. Returns 0 on success.