TARAXA
config_utils.cpp File Reference
#include "config/config_utils.hpp"
#include <json/reader.h>
#include <json/value.h>
#include <stddef.h>
#include <fstream>
#include "common/config_exception.hpp"

Namespaces

 taraxa
 

Functions

std::string taraxa::getConfigErr (const std::vector< std::string > &path)
 
Json::Value taraxa::getConfigData (Json::Value root, const std::vector< std::string > &path, bool optional=false)
 
std::string taraxa::getConfigDataAsString (const Json::Value &root, const std::vector< std::string > &path, bool optional=false, std::string value={})
 
uint32_t taraxa::getConfigDataAsUInt (const Json::Value &root, const std::vector< std::string > &path, bool optional=false, uint32_t value=0)
 
uint64_t taraxa::getConfigDataAsUInt64 (const Json::Value &root, const std::vector< std::string > &path)
 
bool taraxa::getConfigDataAsBoolean (const Json::Value &root, const std::vector< std::string > &path, bool optional=false, bool value=false)
 
Json::Value taraxa::getJsonFromFileOrString (const Json::Value &value)