SST 15.0
Structural Simulation Toolkit
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.
 
std::vector< std::string > getSubscribedSharedParamSets (const Params &params) const
 Get a vector of the shared param sets this Params object is subscribed to.
 
std::vector< std::string > getSubscribedGlobalParamSets (const Params &params) const
 

Static Protected Member Functions

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

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::DotConfigGraphOutput, SST::Core::JSONConfigGraphOutput, SST::Core::PythonConfigGraphOutput, and SST::Core::XMLConfigGraphOutput.

◆ 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

Referenced by SST::Core::JSONConfigGraphOutput::generate().

◆ getSharedParamSet()

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

Get a named shared parameter set.

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

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

◆ getSharedParamSetNames()

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

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

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

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

◆ getSubscribedSharedParamSets()

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

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

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

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