SST  14.1.0
StructuralSimulationToolkit
SST::Core::ConfigGraphOutput Class Referenceabstract

Outputs configuration data to a specified file path. More...

#include <configGraphOutput.h>

Inheritance diagram for SST::Core::ConfigGraphOutput:
SST::Core::DotConfigGraphOutput SST::Core::JSONConfigGraphOutput SST::Core::PythonConfigGraphOutput SST::Core::XMLConfigGraphOutput

Public Member Functions

 ConfigGraphOutput (const char *path)
 
virtual void generate (const Config *cfg, ConfigGraph *graph)=0
 

Protected Member Functions

std::vector< std::string > getParamsLocalKeys (const Params &params) const
 Get a vector of the local keys. More...
 
std::vector< std::string > getSubscribedGlobalParamSets (const Params &params) const
 Get a vector of the global param sets this Params object is subscribed to. More...
 

Static Protected Member Functions

static std::map< std::string, std::string > getGlobalParamSet (const std::string &name)
 Get a named global parameter set. More...
 
static std::vector< std::string > getGlobalParamSetNames ()
 Get a vector of the names of available global parameter sets. More...
 

Protected Attributes

FILE * outputFile
 

Detailed Description

Outputs configuration data to a specified file path.

Member Function Documentation

◆ generate()

virtual void SST::Core::ConfigGraphOutput::generate ( const Config cfg,
ConfigGraph graph 
)
pure virtual
Parameters
cfgConstant pointer to SST configuration
graphConstant pointer to SST configuration graph
Returns
void

Implemented in SST::Core::PythonConfigGraphOutput, SST::Core::JSONConfigGraphOutput, SST::Core::DotConfigGraphOutput, and SST::Core::XMLConfigGraphOutput.

◆ getGlobalParamSet()

static std::map<std::string, std::string> SST::Core::ConfigGraphOutput::getGlobalParamSet ( const std::string &  name)
inlinestaticprotected

Get a named global parameter set.

Parameters
nameName of the set to get
Returns
returns a copy of the reqeusted global param set

References SST::Params::getGlobalParamSet().

Referenced by SST::Core::JSONConfigGraphOutput::generate(), and SST::Core::PythonConfigGraphOutput::generate().

◆ getGlobalParamSetNames()

static std::vector<std::string> SST::Core::ConfigGraphOutput::getGlobalParamSetNames ( )
inlinestaticprotected

Get a vector of the names of available global parameter sets.

Returns
returns a vector of the names of available global param sets

References SST::Params::getGlobalParamSetNames().

Referenced by SST::Core::JSONConfigGraphOutput::generate(), and SST::Core::PythonConfigGraphOutput::generate().

◆ getParamsLocalKeys()

std::vector<std::string> SST::Core::ConfigGraphOutput::getParamsLocalKeys ( const Params params) const
inlineprotected

Get a vector of the local keys.

Returns
returns a vector of the local keys in this Params object

References SST::Params::getLocalKeys().

◆ getSubscribedGlobalParamSets()

std::vector<std::string> SST::Core::ConfigGraphOutput::getSubscribedGlobalParamSets ( const Params params) const
inlineprotected

Get a vector of the global param sets this Params object is subscribed to.

Returns
returns a vector of the global param sets his Params object is subscribed to

References SST::Params::getSubscribedGlobalParamSets().


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