12#define X(Enum, String, Default, Desc) \
28#define X(Enum, String, Default, Desc) \
43#define X(Enum, String, Default, Desc) \
44 if (key == String) { \
57#define X(Enum, String, Default, Desc) \
72 pconfig = std::make_unique<Configuration>();
88 if (key == ALTERNATIVE_REFPROP_PATH || key == ALTERNATIVE_REFPROP_HMX_BNC_PATH || key == ALTERNATIVE_REFPROP_LIBRARY_PATH) {
108 for (std::unordered_map<configuration_keys, ConfigurationItem>::const_iterator it = items.begin(); it != items.end(); ++it) {
109 it->second.add_to_json(doc, doc);
113 rapidjson::Document doc;
121 for (rapidjson::Value::MemberIterator it = val.MemberBegin(); it != val.MemberEnd(); ++it) {
124 std::string s = std::string(it->name.GetString());
128 }
catch (std::exception& e) {
129 throw ValueError(
format(
"Unable to parse json file with error: %s", e.what()));
134 for (rapidjson::Value::MemberIterator it = val.MemberBegin(); it != val.MemberEnd(); ++it) {
136 std::string s = std::string(it->name.GetString());
143 }
catch (std::exception& e) {
144 throw ValueError(
format(
"Unable to parse json file with error: %s", e.what()));
150 rapidjson::Document doc;
151 doc.Parse<0>(s.c_str());