ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
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
10namespace Json
11{
12
13using jsonValue = nlohmann::ordered_json;
14
15class 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
Generate the general_info section of the JSON tree.
Definition general_info.cpp:14