TARAXA
Loading...
Searching...
No Matches
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"
#include "libdevcore/CommonJS.h"

Namespaces

namespace  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, const std::string &value={})
 
uint64_t taraxa::getConfigDataAsUInt (const Json::Value &root, const std::vector< std::string > &path, bool optional=false, uint32_t value=0)
 
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)