24#ifndef CONFIG_READER_INCLUDED
25#define CONFIG_READER_INCLUDED
31#include <rapidjson/document.h>
60 bool get_element(
const std::string element_name, T &element_value) {
61 if (!
valid_ || !
data_.HasMember(element_name))
return true;
62 element_value =
data_[element_name].Get<T>();
Definition: config_reader.h:36
rapidjson::Document data_
Configuration data in JSON.
Definition: config_reader.h:70
Config_reader(const std::string config_file_path)
Constructor.
Definition: config_reader.cc:34
bool get_element(const std::string element_name, T &element_value)
Get an element value from JSON document.
Definition: config_reader.h:60
bool valid_
Validity of configuration data.
Definition: config_reader.h:72
std::string config_file_path_
Configuration file path.
Definition: config_reader.h:68
Define rapidjson::SizeType to be std::uint64_t.
Definition: keyring_encryption_service_definition.h:32