39 friend int ::main(
int argc,
char** argv);
49 ConfigShared(
bool suppress_print,
bool include_libpath,
bool include_env,
bool include_verbose);
52 void addLibraryPathOptions();
53 void addEnvironmentOptions();
54 void addVerboseOptions(
bool sdl_avail);
64 SST_CONFIG_DECLARE_OPTION(std::string, libpath,
"", &StandardConfigParsers::from_string<std::string>);
66 SST_CONFIG_DECLARE_OPTION(std::string, addLibPath,
"",
67 std::bind(&StandardConfigParsers::append_string,
":",
"", std::placeholders::_1, std::placeholders::_2));
72 SST_CONFIG_DECLARE_OPTION(
bool, print_env,
false, &StandardConfigParsers::flag_set_true);
74 SST_CONFIG_DECLARE_OPTION(
bool, no_env_config,
false, &StandardConfigParsers::flag_set_true);
78 static int parse_verbosity(int32_t& val, std::string arg)
85 unsigned long value = stoul(arg);
89 catch (
const std::invalid_argument& e ) {
90 fprintf(stderr,
"Failed to parse '%s' as number for option --verbose\n", arg.c_str());
95 SST_CONFIG_DECLARE_OPTION(int32_t, verbose, 0, &ConfigShared::parse_verbosity);
100 std::string
getLibPath(
bool exclude_ext_paths =
false)
const;
ConfigShared(bool suppress_print, bool include_libpath, bool include_env, bool include_verbose)
ConfigShared constructor that it meant to be used when needing a stand alone ConfigShared (i....
Definition configShared.cc:23
std::string getLibPath(bool exclude_ext_paths=false) const
Get the library path for loading element libraries.
Definition configShared.cc:74