blob: 626c9826b0fa454a9caf6df6f110a73817e61185 [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 */
17std::pair<std::map<int64_t, PIDConf>, std::map<int64_t, struct ZoneConfig>>
18 buildPIDsFromJson(const json& data);