English Français

Documentation / Manuel développeur

Modules disponibles

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / ReLauncher: TKeyResult.h Source File
Uranie / ReLauncher  v4.10.0
/* @license-end */
TKeyResult.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 __TKEYRESULT__
33 #define __TKEYRESULT__
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 TKeyFinder: public TNamed
52 {
53 protected:
54  static TRegexp _value;
57 
58 public:
59  URANIE::DataServer::TAttribute *_att;
60 
61  TKeyFinder(const char *name, URANIE::DataServer::TAttribute *att);
62  virtual ~TKeyFinder();
63 
64  Bool_t match(TString &);
65  double get(TString &);
66  void get(TString &, URANIE::DataServer::UEntry *);
67  TString getTStr(TString &line);
68 
69  void setVectorProperties( TString beg, TString delim, TString end);
70  TString getVectorProperties(){ return _svecbeg+"/"+_svecdel+"/"+_svecend; }
71  void setStringProperties( TString beg, TString end);
72 };
73 
74 class TKeyResult: public TCodeResult
75 {
76 protected:
77  TString _path;
78  TObjArray _vars;
80 
81 public:
82  TKeyResult(const char *);
83  virtual ~TKeyResult(void);
84 
85  void addOutput(URANIE::DataServer::TAttribute *at, const char *key);
86  void setOutputs(int, URANIE::DataServer::TAttribute *at, const char *key, ...);
87  void build(TObjArray *);
88  int get(TString &, Double_t*);
89  int get(TString &work, vector<URANIE::DataServer::UEntry*> *sout);
90 
91  void clearFile(TString tmpdir);
92  void setVectorProperties( TString beg, TString delim, TString end);
93  void setStringProperties( TString beg, TString end);
94 
95  ClassDef(URANIE::Relauncher::TKeyResult, ID_RELAUNCHER)
96 
97 };
98 
99 }
100 } //namespace
101 
102 #endif
Definition: TBaseEval.cxx:44
Definition: TCodeBase.h:80
Definition: TKeyResult.h:51
TString _path
Definition: TKeyResult.h:77
virtual ~TKeyFinder()
Definition: TKeyResult.cxx:95
encapsulation dun TCode
bool _bnoVectorSpecificities
Definition: TKeyResult.h:79
void setVectorProperties(TString beg, TString delim, TString end)
Definition: TKeyResult.cxx:161
TString _svecdel
Definition: TKeyResult.h:56
TKeyResult(const char *)
Definition: TKeyResult.cxx:144
TRegexp _re_equ
Definition: TKeyResult.h:55
TString _svecend
Definition: TKeyResult.h:56
void setStringProperties(TString beg, TString end)
Definition: TKeyResult.cxx:172
void clearFile(TString tmpdir)
Definition: TKeyResult.cxx:363
TObjArray _vars
Definition: TKeyResult.h:78
URANIE::DataServer::TAttribute * _att
Definition: TKeyResult.h:59
Definition: TKeyResult.h:74
TString getTStr(TString &line)
Definition: TKeyResult.cxx:123
static TRegexp _value
Definition: TKeyResult.h:54
void build(TObjArray *)
Definition: TKeyResult.cxx:210
virtual ~TKeyResult(void)
Definition: TKeyResult.cxx:149
TRegexp _re_full
Definition: TKeyResult.h:55
TString _svecbeg
Definition: TKeyResult.h:56
void addOutput(URANIE::DataServer::TAttribute *at, const char *key)
Definition: TKeyResult.cxx:182
TKeyFinder(const char *name, URANIE::DataServer::TAttribute *att)
Definition: TKeyResult.cxx:49
TRegexp _re_fin
Definition: TKeyResult.h:55
void setStringProperties(TString beg, TString end)
Definition: TKeyResult.cxx:87
TRegexp _re_equ_empty
Definition: TKeyResult.h:55
void setVectorProperties(TString beg, TString delim, TString end)
Definition: TKeyResult.cxx:68
TString _sstrbeg
Definition: TKeyResult.h:56
TString _sstrend
Definition: TKeyResult.h:56
Bool_t match(TString &)
Definition: TKeyResult.cxx:100
TRegexp _re_fin_empty
Definition: TKeyResult.h:55
void setOutputs(int, URANIE::DataServer::TAttribute *at, const char *key,...)
Definition: TKeyResult.cxx:188
TString getVectorProperties()
Definition: TKeyResult.h:70