Changeset View
Changeset View
Standalone View
Standalone View
src/util.h
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | #ifdef WIN32 | ||||
return c == '-' || c == '/'; | return c == '-' || c == '/'; | ||||
#else | #else | ||||
return c == '-'; | return c == '-'; | ||||
#endif | #endif | ||||
} | } | ||||
class ArgsManager { | class ArgsManager { | ||||
protected: | protected: | ||||
friend class ArgsManagerHelper; | |||||
mutable CCriticalSection cs_args; | mutable CCriticalSection cs_args; | ||||
std::map<std::string, std::string> mapArgs; | std::map<std::string, std::vector<std::string>> m_override_args; | ||||
std::map<std::string, std::vector<std::string>> mapMultiArgs; | std::map<std::string, std::vector<std::string>> m_config_args; | ||||
std::unordered_set<std::string> m_negated_args; | std::unordered_set<std::string> m_negated_args; | ||||
void ReadConfigStream(std::istream &stream); | void ReadConfigStream(std::istream &stream); | ||||
public: | public: | ||||
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); | ||||
▲ Show 20 Lines • Show All 159 Lines • Show Last 20 Lines |