SST  6.0.0
StructuralSimulationToolkit
pythonConfigOutput.h
1 // Copyright 2009-2016 Sandia Corporation. Under the terms
2 // of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S.
3 // Government retains certain rights in this software.
4 //
5 // Copyright (c) 2009-2016, Sandia Corporation
6 // All rights reserved.
7 //
8 // This file is part of the SST software package. For license
9 // information, see the LICENSE file in the top level directory of the
10 // distribution.
11 //
12 
13 #ifndef _H_SST_CORE_CONFIG_OUTPUT_PYTHON
14 #define _H_SST_CORE_CONFIG_OUTPUT_PYTHON
15 
16 #include <sst/core/configGraph.h>
17 #include <sst/core/configGraphOutput.h>
18 
19 namespace SST {
20 namespace Core {
21 
23 public:
24  PythonConfigGraphOutput(const char* path);
25 
26  virtual void generate(const Config* cfg,
28 
29 protected:
30  char* makePythonSafeWithPrefix(const std::string name, const std::string prefix) const;
31  void makeBufferPythonSafe(char* buffer) const;
32  char* makeEscapeSafe(const std::string input) const;
33  bool strncmp(const char* a, const char* b, const size_t n) const;
34  bool isMultiLine(const char* check) const;
35  bool isMultiLine(const std::string check) const;
36 };
37 
38 }
39 }
40 
41 #endif
Definition: configGraphOutput.h:40
Class to contain SST Simulation Configuration variables.
Definition: config.h:39
A Configuration Graph A graph representing Components and Links.
Definition: configGraph.h:202
Definition: pythonConfigOutput.h:22
Definition: configGraphOutput.h:25
Definition: action.cc:17