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 | */ |
James Feist | f81f288 | 2019-02-26 11:26:36 -0800 | [diff] [blame] | 17 | std::pair<std::map<int64_t, conf::PIDConf>, |
| 18 | std::map<int64_t, struct conf::ZoneConfig>> |
Patrick Venture | d149172 | 2019-02-08 14:37:45 -0800 | [diff] [blame] | 19 | buildPIDsFromJson(const json& data); |