English Français

Documentation / Manuel développeur

Modules disponibles

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / ReLauncher: TFlatResult.h Source File
Uranie / ReLauncher  v4.10.0
/* @license-end */
TFlatResult.h
Go to the documentation of this file.
1 // 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 __TFLATRESULT__
33 #define __TFLATRESULT__
34 
35 //ROOT
36 #include "TString.h"
37 #include "TList.h"
38 #include "TObjArray.h"
39 #include "TRegexp.h"
40 
41 //Uranie
42 #include "Relauncher.h"
43 #include "TAttribute.h"
44 #include "TCodeEval.h"
45 
46 namespace URANIE
47 {
48 namespace Relauncher
49 {
50 
51 class TFlatResult: public TCodeResult
52 {
53 protected:
54  static TRegexp _num;
55  TString _path;
56  TObjArray _vars;
58  string _ssepar;
60 
61 public:
62  TFlatResult(const char *);
63  virtual ~TFlatResult(void);
64 
65  void addOutput(URANIE::DataServer::TAttribute *at);
66  void setOutputs(int, URANIE::DataServer::TAttribute *at, ...);
67  void build(TObjArray *);
68  int get(TString &, Double_t*);
69  int get(TString &work, vector<URANIE::DataServer::UEntry*> *sout);
70 
71  void clearFile(TString tmpdir);
72  void setVectorProperties( TString beg, TString delim, TString end);
73  void setStringProperties( TString beg, TString end);
74  void isMultiLine( string separ="" ) { _bMultiLine=true; if( separ!="" ) _ssepar = separ;}
75 
76  ClassDef(URANIE::Relauncher::TFlatResult, ID_RELAUNCHER)
77 
78 };
79 
80 }
81 } //namespace
82 
83 #endif
Definition: TBaseEval.cxx:44
Definition: TCodeBase.h:80
TString _svecbeg
Definition: TFlatResult.h:57
encapsulation dun TCode
void isMultiLine(string separ="")
Definition: TFlatResult.h:74
void clearFile(TString tmpdir)
Definition: TFlatResult.cxx:264
TObjArray _vars
Definition: TFlatResult.h:56
TString _sstrbeg
Definition: TFlatResult.h:57
virtual ~TFlatResult(void)
Definition: TFlatResult.cxx:61
TString _path
Definition: TFlatResult.h:55
void build(TObjArray *)
Definition: TFlatResult.cxx:99
bool _bMultiLine
Definition: TFlatResult.h:59
Definition: TFlatResult.h:51
void setStringProperties(TString beg, TString end)
Definition: TFlatResult.cxx:70
TString _svecdel
Definition: TFlatResult.h:57
TString _sstrend
Definition: TFlatResult.h:57
string _ssepar
Definition: TFlatResult.h:58
void setOutputs(int, URANIE::DataServer::TAttribute *at,...)
Definition: TFlatResult.cxx:82
bool _bWarningDone
Definition: TFlatResult.h:59
void addOutput(URANIE::DataServer::TAttribute *at)
Definition: TFlatResult.cxx:77
TString _svecend
Definition: TFlatResult.h:57
static TRegexp _num
Definition: TFlatResult.h:54
TFlatResult(const char *)
Definition: TFlatResult.cxx:52
void setVectorProperties(TString beg, TString delim, TString end)
Definition: TFlatResult.cxx:65