VAPOR3 3.9.4
PythonVariablesParams.h
Go to the documentation of this file.
1#ifndef PYTHONVARIABLESPARAMS_H
2#define PYTHONVARIABLESPARAMS_H
3
4#include <vapor/ParamsBase.h>
5
6namespace VAPoR {
7
8class PythonScript;
9
11public:
13
15
17
18 static string GetClassType() { return ("PythonVariablesParams"); }
19
20 std::vector<string> GetPythonScripts() const;
21
22 std::vector<string> GetPythonScriptNames();
23
24 void AddPythonScript(string scriptName);
25 void RemovePythonScript(string scriptName);
26
27private:
28 VAPoR::ParamsContainer *_pythonScripts;
29
30 static const string _pythonScriptsTag;
31};
32
33class PythonScript : public ParamsBase {
34public:
36
38
40
41 static string GetClassType() { return ("PythonScript"); }
42
43 string GetScript() const;
44 void SetScript(string script);
45
46 string GetScriptName() const;
47 void SetScriptName(string scriptName);
48
49 std::vector<string> GetOutputVars() const;
50 void SetOutputVars(std::vector<string> outputVars);
51
52 std::vector<string> GetOutputGrids() const;
53 void SetOutputGrids(std::vector<string> grids);
54
55 std::vector<string> GetInputVars() const;
56 void SetInputVars(std::vector<string> inputVars);
57
58 std::vector<string> GetInputGrids() const;
59 void SetInputGrids(std::vector<string> inputGrids);
60
61 string GetDataMgr() const;
62 void SetDataMgr(string dataMgrName);
63
64private:
65 // string _pythonScript;
66 // string _scriptName;
67 // string _dataMgrName;
68 DataMgr * _dataMgr;
69 std::vector<string> _grids;
70 std::vector<string> _inputVars;
71 std::vector<string> _outputVars;
72 std::vector<string> _outputVarGrids;
73
74 static const string _pythonScriptTag;
75 static const string _scriptNameTag;
76 static const string _dataMgrNameTag;
77 static const string _dataMgrGridsTag;
78 static const string _inputVarsTag;
79 static const string _outputVarsTag;
80 static const string _outputVarGridsTag;
81};
82
83}; // namespace VAPoR
84
85#endif
A cache based data reader.
Definition: DataMgr.h:110
State capture class.
Definition: ParamsBase.h:62
Nodes with state in Xml tree representation.
Definition: ParamsBase.h:50
std::vector< string > GetOutputGrids() const
void SetDataMgr(string dataMgrName)
void SetOutputGrids(std::vector< string > grids)
PythonScript(VAPoR::ParamsBase::StateSave *ssave, VAPoR::XmlNode *node)
std::vector< string > GetOutputVars() const
void SetInputGrids(std::vector< string > inputGrids)
std::vector< string > GetInputVars() const
void SetScript(string script)
string GetScriptName() const
void SetScriptName(string scriptName)
void SetInputVars(std::vector< string > inputVars)
string GetDataMgr() const
void SetOutputVars(std::vector< string > outputVars)
PythonScript(VAPoR::ParamsBase::StateSave *ssave)
string GetScript() const
static string GetClassType()
std::vector< string > GetInputGrids() const
std::vector< string > GetPythonScripts() const
PythonVariablesParams(DataMgr *dataMgr, ParamsBase::StateSave *ssave)
void RemovePythonScript(string scriptName)
void AddPythonScript(string scriptName)
PythonVariablesParams(DataMgr *dataMgr, ParamsBase::StateSave *ssave, XmlNode *node)
std::vector< string > GetPythonScriptNames()
An Xml tree.
Definition: XmlNode.h:49