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