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);
68 std::string libpath_ =
"";
69 std::string addlibpath_ =
"";
72 bool print_env_ =
false;
73 bool no_env_config_ =
false;
82 int setLibPath(
const std::string& arg)
89 int setAddLibPath(
const std::string& arg)
91 if ( addlibpath_.length() > 0 ) addlibpath_ += std::string(
":");
98 int enablePrintEnv(
const std::string& UNUSED(arg))
100 printf(
"enablePrintEnv()\n");
105 int disableEnvConfig(
const std::string& UNUSED(arg))
107 printf(
"disableEnvConfig()\n");
108 no_env_config_ =
true;
114 int setVerbosity(
const std::string& arg)
121 unsigned long val = stoul(arg);
125 catch ( std::invalid_argument& e ) {
126 fprintf(stderr,
"Failed to parse '%s' as number for option --verbose\n", arg.c_str());
139 bool no_env_config()
const {
return no_env_config_; }
141 int verbose()
const {
return verbose_; }
143 std::string libpath()
const {
return libpath_; }
144 std::string addLibPath()
const {
return addlibpath_; }
ConfigBase(bool suppress_print)
ConfigBase constructor.
Definition configBase.h:115
bool print_env() const
Controls whether the environment variables that SST sees are printed out.
Definition configShared.h:137
std::string getLibPath() const
Get the library path for loading element libraries.
Definition configShared.cc:81
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
ConfigShared()
Default constructor used for serialization.
Definition configShared.h:59