7 #include "nlohmann/json.hpp"
15 namespace 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);
JSon(const std::string &file_name)
Constructor.
void store(const std::string &file_name, const JDetector &detector)
Store detector to output file.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
then fatal The output file must have the wildcard in the e g root fi eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
Auxiliary class to load json data from file.