blob: 5489c5a7925b1b8ca58973ffecc74fca6d104e25 [file] [log] [blame]
#pragma once
#include "conf.hpp"
#include <nlohmann/json.hpp>
#include <map>
#include <tuple>
namespace pid_control
{
using json = nlohmann::json;
/**
* Given the json "zones" data, create the map of PIDs and the map of zones.
*
* @param[in] data - the json data
* @return the pidConfig, and the zoneConfig
*/
std::pair<std::map<int64_t, conf::PIDConf>,
std::map<int64_t, struct conf::ZoneConfig>>
buildPIDsFromJson(const json& data);
} // namespace pid_control