blob: 2ac573aae700d51c2737c728fd5f93a84813c66e [file] [log] [blame]
Patrick Ventured1491722019-02-08 14:37:45 -08001#pragma once
2
3#include "conf.hpp"
4
Patrick Ventured1491722019-02-08 14:37:45 -08005#include <nlohmann/json.hpp>
Patrick Venturea83a3ec2020-08-04 09:52:05 -07006
7#include <map>
Patrick Ventured1491722019-02-08 14:37:45 -08008#include <tuple>
9
10using json = nlohmann::json;
11
12/**
13 * Given the json "zones" data, create the map of PIDs and the map of zones.
14 *
15 * @param[in] data - the json data
16 * @return the pidConfig, and the zoneConfig
17 */
James Feistf81f2882019-02-26 11:26:36 -080018std::pair<std::map<int64_t, conf::PIDConf>,
19 std::map<int64_t, struct conf::ZoneConfig>>
Patrick Ventured1491722019-02-08 14:37:45 -080020 buildPIDsFromJson(const json& data);