Fix helper naming a bit

This commit is contained in:
2026-06-22 15:30:19 +03:00
parent 52b0d6642f
commit 5ae6fb711c
2 changed files with 12 additions and 12 deletions

View File

@@ -9,19 +9,19 @@
#include "json.hpp"
// Reads configuration json from supplied filename
// cfg - output json
// Reads json from supplied filename
// j - output json
// filename - filepath from which to read json
// log - ostream to log human readable errors to - can be nullptr
// Returns - true if read and parse is successful
bool read_config_json(nlohmann::json& cfg, const std::string& filename, std::ostream* log);
bool read_file_json(nlohmann::json& j, const std::string& filename, std::ostream* log);
// Reads configuration json from supplied istream
// cfg - output json
// j - output json
// in - istream from which to read json
// log - ostream to log human readable errors to - can be nullptr
// Returns - true if read and parse is successful
bool read_config_json(nlohmann::json& cfg, std::istream& in, std::ostream* log);
bool read_stream_json(nlohmann::json& j, std::istream& in, std::ostream* log);
// JSON Extraction Helpers
// out value is modified only if an extraction happened