SST  13.0.0
StructuralSimulationToolkit
SST::SSTInfoConfig Class Reference

The SSTInfo Configuration class. More...

#include <sstinfo.h>

Inheritance diagram for SST::SSTInfoConfig:
SST::ConfigShared SST::ConfigBase

Public Types

typedef std::multimap< std::string, std::string > FilterMap_t
 

Public Member Functions

 SSTInfoConfig (bool suppress_print)
 Create a new SSTInfo configuration and parse the Command Line. More...
 
std::set< std::string > getElementsToProcessArray ()
 Return the list of elements to be processed. More...
 
FilterMap_t & getFilterMap ()
 Return the filter map.
 
unsigned int getOptionBits ()
 Return the bit field of various command line options enabled. More...
 
std::string & getXMLFilePath ()
 Return the user defined path the XML File. More...
 
bool debugEnabled () const
 Is debugging output enabled?
 
bool processAllElements () const
 
bool doVerbose () const
 
- Public Member Functions inherited from SST::ConfigShared
 ConfigShared (bool suppress_print, bool suppress_sdl, bool include_libpath, bool include_env, bool include_verbose)
 ConfigShared constructor that it meant to be used when needing a stand only ConfigShared (i.e. More...
 
bool print_env () const
 Controls whether the environment variables that SST sees are printed out.
 
bool no_env_config () const
 
int verbose () const
 
std::string libpath () const
 
std::string addLibPath () const
 
std::string getLibPath (void) const
 Get the library path for loading element libraries. More...
 
- Public Member Functions inherited from SST::ConfigBase
int parseCmdLine (int argc, char *argv[], bool ignore_unknown=false)
 Parse command-line arguments to update configuration values. More...
 

Protected Member Functions

std::string getUsagePrelude () override
 Called to get the prelude for the help/usage message.
 
- Protected Member Functions inherited from SST::ConfigShared
void addLibraryPathOptions ()
 
void addEnvironmentOptions ()
 
void addVerboseOptions (bool sdl_avail)
 
 ConfigShared (bool suppress_print, bool suppress_sdl)
 ConfigShared constructor for child classes.
 
 ConfigShared ()
 Default constructor used for serialization. More...
 
- Protected Member Functions inherited from SST::ConfigBase
 ConfigBase (bool suppress_print, bool suppress_sdl)
 ConfigBase constructor. More...
 
 ConfigBase ()
 Default constructor used for serialization. More...
 
int printUsage ()
 Called to print the help/usage message.
 
void addOption (struct option opt, const char *argname, const char *desc, std::function< int(const char *arg)> callback, bool header, bool sdl_avail)
 Add options to the Config object. More...
 
virtual int checkArgsAfterParsing ()
 
void enableDashDashSupport (std::function< int(const char *arg)> callback)
 
void addPositionalCallback (std::function< int(int num, const char *arg)> callback)
 
std::string getRunName ()
 Get the name of the executable being run. More...
 
bool setOptionExternal (const std::string &entryName, const std::string &value)
 Set a configuration string to update configuration values.
 

Additional Inherited Members

- Static Public Member Functions inherited from SST::ConfigBase
static bool parseBoolean (const std::string &arg, bool &success, const std::string &option)
 
- Protected Attributes inherited from SST::ConfigShared
std::string libpath_ = ""
 
std::string addlibpath_ = ""
 
bool print_env_ = false
 
bool no_env_config_ = false
 
int verbose_ = 0
 

Detailed Description

The SSTInfo Configuration class.

This class will parse the command line, and setup internal lists of elements and components to be processed.

Constructor & Destructor Documentation

◆ SSTInfoConfig()

SSTInfoConfig::SSTInfoConfig ( bool  suppress_print)

Create a new SSTInfo configuration and parse the Command Line.

Member Function Documentation

◆ getElementsToProcessArray()

std::set<std::string> SST::SSTInfoConfig::getElementsToProcessArray ( )
inline

Return the list of elements to be processed.

◆ getOptionBits()

unsigned int SST::SSTInfoConfig::getOptionBits ( )
inline

Return the bit field of various command line options enabled.

◆ getXMLFilePath()

std::string& SST::SSTInfoConfig::getXMLFilePath ( )
inline

Return the user defined path the XML File.


The documentation for this class was generated from the following files: