ABACUS
develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
source
source_io
module_json
abacusjson.h
Go to the documentation of this file.
1
#ifndef ABACUS_JSON_H
2
#define ABACUS_JSON_H
3
4
#include <string>
5
6
#ifdef __JSON
7
// Keep the implementation-heavy json.hpp out of this header.
8
#include <nlohmann/json_fwd.hpp>
9
10
namespace
Json
11
{
12
13
using
jsonValue = nlohmann::ordered_json;
14
15
class
AbacusJson
16
{
17
public
:
18
// Shared document for the schema generators in module_json; keep its root an object.
19
static
jsonValue& document();
20
static
void
write_to_json(
const
std::string& filename);
21
22
private
:
23
static
jsonValue doc;
24
};
25
26
}
// namespace Json
27
#endif
// __JSON
28
29
#endif
Json
Generate the general_info section of the JSON tree.
Definition
general_info.cpp:14
Generated by
1.15.0