eOn client
Long-timescale dynamics: aKMC, NEB, parallel replica
☾
Toggle main menu visibility
Loading...
Searching...
No Matches
ParametersJSON.h
Go to the documentation of this file.
1
/*
2
** This file is part of eOn.
3
**
4
** SPDX-License-Identifier: BSD-3-Clause
5
**
6
** Copyright (c) 2010--present, eOn Development Team
7
** All rights reserved.
8
**
9
** Repo:
10
** https://github.com/TheochemUI/eOn
11
*/
12
#pragma once
13
14
#include <nlohmann/json.hpp>
15
#include <string>
16
17
namespace
eonc
{
18
19
class
Parameters
;
20
21
namespace
config
{
22
24
nlohmann::json
to_json
(
const
Parameters ¶ms);
25
27
void
from_json
(
const
nlohmann::json &j, Parameters ¶ms);
28
30
int
load_json
(
const
std::string &json_str, Parameters ¶ms);
31
32
}
// namespace config
33
}
// namespace eonc
eonc::Parameters
Definition
Parameters.h:28
eonc::config
Definition
ParametersINI.cpp:40
eonc::config::from_json
void from_json(const json &j, Parameters &p)
Deserialize JSON into Parameters, then resolve computed fields.
Definition
ParametersJSON.cpp:211
eonc::config::to_json
json to_json(const Parameters &p)
Serialize all Parameters to JSON.
Definition
ParametersJSON.cpp:46
eonc::config::load_json
int load_json(const std::string &json_str, Parameters ¶ms)
Load Parameters from a JSON string. Returns 0 on success.
Definition
ParametersJSON.cpp:389
eonc
RAII resource manager for the ARTn C library with global synchronization.
Definition
ARTnSaddleSearch.cpp:19
include
eon
ParametersJSON.h
Generated by
1.17.0
Generated by
Doxygen 1.17.0
Analytics by
Antics
provided by
TurtleTech ehf