FRIBParallelanalysis  1.0
FrameworkforMPIParalleldataanalysisatFRIB
TCLParameterReader.h
Go to the documentation of this file.
1 /*
2  This software is Copyright by the Board of Trustees of Michigan
3  State University (c) Copyright 2017.
4 
5  You may use this software under the terms of the GNU public license
6  (GPL). The terms of this license are described at:
7 
8  http://www.gnu.org/licenses/gpl.txt
9 
10  Authors:
11  Ron Fox
12  Giordano Cerriza
13  FRIB
14  Michigan State University
15  East Lansing, MI 48824-1321
16 */
17 
21 #ifndef TCLPARAMETERREADER_H
22 #define TCLPARAMETERREADER_H
23 
24 #include "ParameterReader.h"
25 #include <TCLObjectProcessor.h>
26 
27 class CTCLInterpreter;
28 
29 namespace frib {
30  namespace analysis {
52  // nested classes that implement the commands:
53  private:
54  class TreeParameterCommand : public CTCLObjectProcessor {
55  public:
56  TreeParameterCommand(CTCLInterpreter& interp);
57  int operator()(CTCLInterpreter& interp, std::vector<CTCLObject>& objv);
58  };
59  class TreeParameterArrayCommand : public CTCLObjectProcessor {
60  public:
61  TreeParameterArrayCommand(CTCLInterpreter& interp);
62  int operator()(CTCLInterpreter& interp, std::vector<CTCLObject>& objv);
63  };
64  class TreeVariableCommand : public CTCLObjectProcessor {
65  public:
66  TreeVariableCommand(CTCLInterpreter& interp);
67  int operator()(CTCLInterpreter& interp, std::vector<CTCLObject>& objv);
68  };
69  class TreeVariableArrayCommand : public CTCLObjectProcessor {
70  public:
71  TreeVariableArrayCommand(CTCLInterpreter& interp);
72  int operator()(CTCLInterpreter& interp, std::vector<CTCLObject>& objv);
73  };
74 
75  public:
76  CTCLParameterReader(const char* pFilename);
77  virtual void read();
78  private:
79  CTCLInterpreter* setupInterpreter();
80  };
81  }
82 }
83 
84 
85 
86 #endif
: Reads a parameter/variable definition file
Definition: TCLInterpreter.h:59
virtual void read()
Definition: TCLParameterReader.cpp:192
CTCLParameterReader(const char *pFilename)
Definition: TCLParameterReader.cpp:179
Definition: TCLParameterReader.h:51
Definition: ParameterReader.h:32
Definition: TCLObjectProcessor.h:44
Definition: AbstractApplication.cpp:30