blob: d4e86a799dd420887c4f6149b89bcfb845205706 [file] [log] [blame]
Patrick Ventured1491722019-02-08 14:37:45 -08001#pragma once
2
3#include "conf.hpp"
4
5#include <map>
6#include <nlohmann/json.hpp>
7#include <tuple>
8
9using 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 Feistf81f2882019-02-26 11:26:36 -080017std::pair<std::map<int64_t, conf::PIDConf>,
18 std::map<int64_t, struct conf::ZoneConfig>>
Patrick Ventured1491722019-02-08 14:37:45 -080019 buildPIDsFromJson(const json& data);