1 #pragma once 2 3 #include "conf.hpp" 4 5 #include <nlohmann/json.hpp> 6 7 #include <map> 8 #include <tuple> 9 10 using json = nlohmann::json; 11 12 /** 13 * Given the json "zones" data, create the map of PIDs and the map of zones. 14 * 15 * @param[in] data - the json data 16 * @return the pidConfig, and the zoneConfig 17 */ 18 std::pair<std::map<int64_t, conf::PIDConf>, 19 std::map<int64_t, struct conf::ZoneConfig>> 20 buildPIDsFromJson(const json& data); 21