eOn 3.2.0
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
#include <string_view>
17
18
namespace
eonc
{
19
20
class
Parameters
;
21
22
namespace
config
{
23
25
nlohmann::json
to_json
(
const
Parameters ¶ms);
26
28
void
from_json
(
const
nlohmann::json &j, Parameters ¶ms);
29
31
int
load_json
(std::string_view json_str, Parameters ¶ms);
32
33
}
// namespace config
34
}
// namespace eonc
eonc::Parameters
Definition
Parameters.h:35
eonc::config
Definition
ParametersINI.cpp:42
eonc::config::from_json
void from_json(const json &j, Parameters &p)
Deserialize JSON into Parameters, then resolve computed fields.
Definition
ParametersJSON.cpp:445
eonc::config::load_json
int load_json(std::string_view json_str, Parameters ¶ms)
Load Parameters from a JSON string. Returns 0 on success.
Definition
ParametersJSON.cpp:836
eonc::config::to_json
json to_json(const Parameters &p)
Serialize all Parameters to JSON.
Definition
ParametersJSON.cpp:50
eonc
RAII resource manager for the ARTn C library with global synchronization.
Definition
ARTnSaddleSearch.cpp:23
include
eon
ParametersJSON.h
Generated by
1.17.0
Generated by
Doxygen 1.17.0
Analytics by
Antics
provided by
TurtleTech ehf