Bitcoin ABC 0.30.5
P2P Digital Currency
Functions
configfile.cpp File Reference
#include <common/args.h>
#include <logging.h>
#include <sync.h>
#include <tinyformat.h>
#include <univalue.h>
#include <util/fs.h>
#include <util/settings.h>
#include <util/string.h>
#include <algorithm>
#include <cassert>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <list>
#include <map>
#include <memory>
#include <optional>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
Include dependency graph for configfile.cpp:

Go to the source code of this file.

Functions

fs::path GetConfigFile (const ArgsManager &args, const fs::path &configuration_file_path)
 
static bool GetConfigOptions (std::istream &stream, const std::string &filepath, std::string &error, std::vector< std::pair< std::string, std::string > > &options, std::list< SectionInfo > &sections)
 
fs::path AbsPathForConfigVal (const ArgsManager &args, const fs::path &path, bool net_specific)
 Most paths passed as configuration arguments are treated as relative to the datadir if they are not absolute. More...
 

Function Documentation

◆ AbsPathForConfigVal()

fs::path AbsPathForConfigVal ( const ArgsManager args,
const fs::path path,
bool  net_specific = true 
)

Most paths passed as configuration arguments are treated as relative to the datadir if they are not absolute.

Parameters
argsParsed arguments and settings.
pathThe path to be conditionally prefixed with datadir.
net_specificUse network specific datadir variant
Returns
The normalized path.

Definition at line 236 of file configfile.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetConfigFile()

fs::path GetConfigFile ( const ArgsManager args,
const fs::path configuration_file_path 
)

Definition at line 29 of file configfile.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetConfigOptions()

static bool GetConfigOptions ( std::istream &  stream,
const std::string &  filepath,
std::string &  error,
std::vector< std::pair< std::string, std::string > > &  options,
std::list< SectionInfo > &  sections 
)
static

Definition at line 36 of file configfile.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: