English Français

Documentation / Developer's manual

Available modules

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / ReLauncher: TFlagScript.h Source File
Uranie / ReLauncher v4.9.0
/* @license-end */
TFlagScript.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 __TFLAGSCRIPT__
33#define __TFLAGSCRIPT__
34
35#include <fstream>
36//ROOT
37#include "TString.h"
38#include "TList.h"
39#include "TObjArray.h"
40#include "TRegexp.h"
41
42//Uranie
43#include "Relauncher.h"
44#include "TAttribute.h"
45#include "TFlatScript.h"
46
47namespace URANIE
48{
49namespace Relauncher
50{
51
52class TFlagParser: public TNamed
53{
54protected:
56
57public:
58 URANIE::DataServer::TAttribute *_att;
60
61 TFlagParser(const char *name, URANIE::DataServer::TAttribute *att);
62 virtual ~TFlagParser();
63
64 virtual Int_t Compare(const TObject *) const;
65 void build(int id, std::istream &fi, TObjArray *v);
68
69};
70
72{
73protected:
74 TObjArray _vars, _occur;
75
76public:
77 TFlagScript(const char *path);
78 virtual ~TFlagScript(void);
79
80 void addInput(URANIE::DataServer::TAttribute *, const char *);
81 void setInputs(Int_t size, URANIE::DataServer::TAttribute *, const char *, ...);
82
83 /* protocole */
84 virtual void build(TString &dir, TObjArray *in);
85 virtual void put(TString &ref, TString &tmp, Double_t*);
86
87 void put(TString &ref, TString &work, vector<URANIE::DataServer::UEntry*> *in);
88
89 ClassDef(URANIE::Relauncher::TFlagScript, ID_RELAUNCHER)
90
91};
92
93}
94} //namespace
95
96#endif
97
entree sur une ligne
Definition TFlagScript.h:53
Ssiz_t _line
Definition TFlagScript.h:59
Ssiz_t _istop
Definition TFlagScript.h:55
URANIE::DataServer::TAttribute * _att
Definition TFlagScript.h:58
virtual Int_t Compare(const TObject *) const
Definition TFlagScript.cxx:60
Ssiz_t _istart
Definition TFlagScript.h:55
Ssiz_t _index
Definition TFlagScript.h:59
TString & replace(TString *line, Double_t val)
Definition TFlagScript.cxx:118
virtual ~TFlagParser()
Definition TFlagScript.cxx:54
void build(int id, std::istream &fi, TObjArray *v)
Definition TFlagScript.cxx:81
Definition TFlagScript.h:72
void addInput(URANIE::DataServer::TAttribute *, const char *)
Definition TFlagScript.cxx:154
TObjArray _vars
Definition TFlagScript.h:74
TObjArray _occur
Definition TFlagScript.h:74
void setInputs(Int_t size, URANIE::DataServer::TAttribute *, const char *,...)
Definition TFlagScript.cxx:160
virtual ~TFlagScript(void)
Definition TFlagScript.cxx:136
virtual void build(TString &dir, TObjArray *in)
Definition TFlagScript.cxx:181
virtual void put(TString &ref, TString &tmp, Double_t *)
Definition TFlagScript.cxx:212
Definition TFlatScript.h:51
Definition TBaseEval.cxx:44