Patrick Venture | d149172 | 2019-02-08 14:37:45 -0800 | [diff] [blame] | 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, PIDConf>, std::map<int64_t, struct ZoneConfig>> | ||||
18 | buildPIDsFromJson(const json& data); |