7#include "nlohmann/json.hpp"
15namespace JPP {
using namespace JSON; }
28 inline void load(
const std::string& file_name, json&
object)
32 ifstream in(file_name.c_str());
46 inline void store(
const std::string& file_name,
const json&
object)
50 ofstream out(file_name.c_str());
52 out << setw(2) << setprecision(8) << object;
69 JSon(
const std::string& file_name)
71 load(file_name, *
this);
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary classes and methods for detector calibration.
void store(const std::string &file_name, const json &object)
Store json data to output file.
void load(const std::string &file_name, json &object)
Load json data from input file.
Auxiliary class to load json data from file.
JSon(const std::string &file_name)
Constructor.