12#ifndef SST_CORE_CONFIGGRAPH_OUTPUT_H 
   13#define SST_CORE_CONFIGGRAPH_OUTPUT_H 
   15#include "sst/core/configGraph.h" 
   16#include "sst/core/params.h" 
   17#include "sst/core/util/filesystem.h" 
   36class ConfigGraphOutputException : 
public std::exception
 
   39    explicit ConfigGraphOutputException(
const char* msg)
 
   41        exMsg = (
char*)malloc(
sizeof(
char) * (strlen(msg) + 1));
 
   42        std::strcpy(
exMsg, msg);
 
   48    virtual const char* 
what() const noexcept
 override { 
return exMsg; }
 
 
   61class ConfigGraphOutput
 
   64    explicit ConfigGraphOutput(
const char* path);
 
   66    virtual ~ConfigGraphOutput() { fclose(outputFile); }
 
   88        return Params::getSharedParamSet(name);
 
 
   92    [[deprecated(
"getGlobalParamSet() has been deprecated and will be removed in SST 16.  Please use " 
   93                 "getSharedParamSet()")]]
 
   94    static std::map<std::string, std::string> getGlobalParamSet(
const std::string& name)
 
  107    [[deprecated(
"getGlobalParamSetNames() has been deprecated and will be removed in SST 16.  Please use " 
  108                 "getSharedParamSetNames()")]]
 
  109    static std::vector<std::string> getGlobalParamSetNames()
 
  134        return params.getSubscribedSharedParamSets();
 
 
  137    [[deprecated(
"getSubscribedGlobalParamSets() has been deprecated and will be removed in SST 16.  Please use " 
  138                 "getSubscribedSharedParamSets()")]]
 
  139    std::vector<std::string> getSubscribedGlobalParamSets(
const Params& params)
 const 
 
A Configuration Graph A graph representing Components and Links.
Definition configGraph.h:450
Class to contain SST Simulation Configuration variables.
Definition config.h:41
char * exMsg
Exception message generated on call.
Definition configGraphOutput.h:55
virtual const char * what() const noexcept override
Definition configGraphOutput.h:48
std::vector< std::string > getParamsLocalKeys(const Params ¶ms) const
Get a vector of the local keys.
Definition configGraphOutput.h:121
std::vector< std::string > getSubscribedSharedParamSets(const Params ¶ms) const
Get a vector of the shared param sets this Params object is subscribed to.
Definition configGraphOutput.h:132
static std::vector< std::string > getSharedParamSetNames()
Get a vector of the names of available shared parameter sets.
Definition configGraphOutput.h:105
virtual void generate(const Config *cfg, ConfigGraph *graph)=0
static std::map< std::string, std::string > getSharedParamSet(const std::string &name)
Get a named shared parameter set.
Definition configGraphOutput.h:86
Parameter store.
Definition params.h:58