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