English Français

Documentation / Developer's manual

Available modules

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / ReLauncher: TFlatScript.h Source File
Uranie / ReLauncher v4.9.0
/* @license-end */
TFlatScript.h
Go to the documentation of this file.
1
2// Copyright (C) 2013-2024 CEA/DES
3//
4// This program is free software: you can redistribute it and/or modify
5// it under the terms of the GNU Lesser General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or any
7// later version.
8//
9// This program is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU Lesser General Public License for more details.
13//
14// You should have received a copy of the GNU Lesser General Public License
15// along with this program. If not, see <http://www.gnu.org/licenses/>.
18// $Id$
19// $Author$
20// $Date$
21// $Revision 1.3 $
22// $State$
24
32#ifndef __TFLATSCRIPT__
33#define __TFLATSCRIPT__
34
35#include <fstream>
36//ROOT
37#include "TString.h"
38#include "TObjArray.h"
39
40//URANIE
41#include "Relauncher.h"
42#include "TAttribute.h"
43#include "TCodeEval.h"
44
45namespace URANIE
46{
47namespace Relauncher
48{
49
51{
52protected:
53 TString _path;
55 TString _format;
56
57public:
58 TShareScript(const char *path);
59 virtual ~TShareScript();
60
61 void setVectorProperties( TString beg, TString delim, TString end);
62 void setStringProperties( TString beg, TString end);
63 void setFormat(TString form) {_format=form;}
64
65 ClassDef(URANIE::Relauncher::TShareScript, ID_RELAUNCHER)
66};
67
69{
70protected:
71 TObjArray _vars;
72
73public:
74 TVoidScript(const char *path);
75 virtual ~TVoidScript();
76
77 void addInput(URANIE::DataServer::TAttribute *);
78 void setInputs(Int_t size, URANIE::DataServer::TAttribute *, ...);
79
80 virtual void build(TString &dir, TObjArray *in);
81
82 ClassDef(URANIE::Relauncher::TVoidScript, ID_RELAUNCHER)
83};
84
85class TNoParser : public TObject
86{
87public:
88 URANIE::DataServer::TAttribute *_att;
89 int _index;
90
91 TNoParser(URANIE::DataServer::TAttribute *att);
92 virtual ~TNoParser();
93
94 void build(int id);
95};
96
98{
99public:
100 TFlatScript(const char *path);
101 virtual ~TFlatScript();
102
103 virtual void put(TString &ref, TString &tmp, Double_t *in);
104 virtual void put(TString &ref, TString &tmp, vector<URANIE::DataServer::UEntry*> *in);
105
106 ClassDef(URANIE::Relauncher::TFlatScript, ID_RELAUNCHER)
107};
108
109}
110} //namespace
111
112#endif
encapsulation dun TCode
Definition TCodeEval.h:54
Definition TFlatScript.h:98
virtual void put(TString &ref, TString &tmp, Double_t *in)
Definition TFlatScript.cxx:143
virtual ~TFlatScript()
Definition TFlatScript.cxx:140
Definition TFlatScript.h:86
virtual ~TNoParser()
Definition TFlatScript.cxx:75
URANIE::DataServer::TAttribute * _att
Definition TFlatScript.h:88
int _index
Definition TFlatScript.h:89
void build(int id)
Definition TFlatScript.cxx:77
Definition TFlatScript.h:51
TString _svecend
Definition TFlatScript.h:54
void setVectorProperties(TString beg, TString delim, TString end)
Definition TFlatScript.cxx:58
void setStringProperties(TString beg, TString end)
Definition TFlatScript.cxx:63
TString _format
Definition TFlatScript.h:55
TString _svecbeg
Definition TFlatScript.h:54
TString _sstrbeg
Definition TFlatScript.h:54
TString _path
Definition TFlatScript.h:53
TString _sstrend
Definition TFlatScript.h:54
void setFormat(TString form)
Definition TFlatScript.h:63
TString _svecdel
Definition TFlatScript.h:54
virtual ~TShareScript()
Definition TFlatScript.cxx:56
Definition TFlatScript.h:69
virtual ~TVoidScript()
Definition TFlatScript.cxx:89
void setInputs(Int_t size, URANIE::DataServer::TAttribute *,...)
Definition TFlatScript.cxx:97
virtual void build(TString &dir, TObjArray *in)
Definition TFlatScript.cxx:115
TObjArray _vars
Definition TFlatScript.h:71
void addInput(URANIE::DataServer::TAttribute *)
Definition TFlatScript.cxx:92
Definition TBaseEval.cxx:44