12 #ifndef SST_CORE_CONFIGSHARED_H 13 #define SST_CORE_CONFIGSHARED_H 15 #include "sst/core/configBase.h" 16 #include "sst/core/sst_types.h" 17 #include "sst/core/warnmacros.h" 43 ConfigShared(
bool suppress_print,
bool include_libpath,
bool include_env,
bool include_verbose);
46 void addLibraryPathOptions();
47 void addEnvironmentOptions();
48 void addVerboseOptions(
bool sdl_avail);
53 ConfigShared(
bool suppress_print, std::vector<AnnotationInfo> annotations);
66 std::string libpath_ =
"";
67 std::string addlibpath_ =
"";
70 bool print_env_ =
false;
71 bool no_env_config_ =
false;
80 int setLibPath(
const std::string& arg)
87 int setAddLibPath(
const std::string& arg)
89 if ( addlibpath_.length() > 0 ) addlibpath_ += std::string(
":");
96 int enablePrintEnv(
const std::string& UNUSED(arg))
98 printf(
"enablePrintEnv()\n");
103 int disableEnvConfig(
const std::string& UNUSED(arg))
105 printf(
"disableEnvConfig()\n");
106 no_env_config_ =
true;
112 int setVerbosity(
const std::string& arg)
119 unsigned long val = stoul(arg);
123 catch ( std::invalid_argument& e ) {
124 fprintf(stderr,
"Failed to parse '%s' as number for option --verbose\n", arg.c_str());
137 bool no_env_config()
const {
return no_env_config_; }
139 int verbose()
const {
return verbose_; }
141 std::string libpath()
const {
return libpath_; }
142 std::string addLibPath()
const {
return addlibpath_; }
149 #endif // SST_CORE_CONFIGBASE_H Class to contain SST Simulation Configuration variables.
Definition: configShared.h:33
std::string getLibPath(void) const
Get the library path for loading element libraries.
Definition: configShared.cc:86
bool print_env() const
Controls whether the environment variables that SST sees are printed out.
Definition: configShared.h:135
Base class to parse command line options for SST Simulation Configuration variables.
Definition: configBase.h:105
ConfigShared()
Default constructor used for serialization.
Definition: configShared.h:59