Parser to get the configuration from json file.
20 boost::property_tree::read_json(std::string{config_path}, json_tree);
22 }
catch (boost::property_tree::json_parser_error &error) {
23 parse_result.EmplaceError(ParsingErrorCode::kError);
24 common::logger::LibBoostLogger::GetLibBoostLogger().GetLogger().LogError(
25 __FILE__, __LINE__, __func__,
26 [&error](std::stringstream &msg) { msg <<
"Reading of config failed with error: " << error.message(); });
Class type to contains a value (of type ValueType), or an error (of type ErrorType)
void EmplaceValue(Args &&...args) noexcept
Put a new value into this instance, constructed in-place from the given arguments.