Fix helper naming a bit
This commit is contained in:
10
helpers.h
10
helpers.h
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user