Changeset View
Changeset View
Standalone View
Standalone View
src/util.h
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | |||||
class ArgsManager { | class ArgsManager { | ||||
protected: | protected: | ||||
friend class ArgsManagerHelper; | friend class ArgsManagerHelper; | ||||
mutable CCriticalSection cs_args; | mutable CCriticalSection cs_args; | ||||
std::map<std::string, std::vector<std::string>> m_override_args; | std::map<std::string, std::vector<std::string>> m_override_args; | ||||
std::map<std::string, std::vector<std::string>> m_config_args; | std::map<std::string, std::vector<std::string>> m_config_args; | ||||
std::string m_network; | |||||
void ReadConfigStream(std::istream &stream); | void ReadConfigStream(std::istream &stream); | ||||
public: | public: | ||||
/** | |||||
* Select the network in use | |||||
*/ | |||||
void SelectConfigNetwork(const std::string &network); | |||||
void ParseParameters(int argc, const char *const argv[]); | void ParseParameters(int argc, const char *const argv[]); | ||||
void ReadConfigFile(const std::string &confPath); | void ReadConfigFile(const std::string &confPath); | ||||
/** | /** | ||||
* Return a vector of strings of the given argument | * Return a vector of strings of the given argument | ||||
* | * | ||||
* @param strArg Argument to get (e.g. "-foo") | * @param strArg Argument to get (e.g. "-foo") | ||||
* @return command-line arguments | * @return command-line arguments | ||||
▲ Show 20 Lines • Show All 150 Lines • Show Last 20 Lines |