blob: 626c9826b0fa454a9caf6df6f110a73817e61185 [file] [log] [blame]
#pragma once
#include "conf.hpp"
#include <map>
#include <nlohmann/json.hpp>
#include <tuple>
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, PIDConf>, std::map<int64_t, struct ZoneConfig>>
buildPIDsFromJson(const json& data);