1 #pragma once 2 3 #include "conf.hpp" 4 5 #include <nlohmann/json.hpp> 6 7 #include <map> 8 #include <string> 9 10 using json = nlohmann::json; 11 12 /** 13 * Given a json object generated from a configuration file, build the sensor 14 * configuration representation. This expecteds the json configuration to be 15 * valid. 16 * 17 * @param[in] data - the json data 18 * @return a map of sensors. 19 */ 20 std::map<std::string, struct conf::SensorConfig> 21 buildSensorsFromJson(const json& data); 22