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.9.0
/* @license-end */
TKeyResult.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 __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
46namespace URANIE
47{
48namespace Relauncher
49{
50
51class TKeyFinder: public TNamed
52{
53protected:
54 static TRegexp _value;
57
58public:
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
75{
76protected:
77 TString _path;
78 TObjArray _vars;
80
81public:
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
encapsulation dun TCode
Definition TCodeEval.h:66
Definition TKeyResult.h:52
Bool_t match(TString &)
Definition TKeyResult.cxx:98
TRegexp _re_fin_empty
Definition TKeyResult.h:55
TRegexp _re_equ_empty
Definition TKeyResult.h:55
static TRegexp _value
Definition TKeyResult.h:54
TString getTStr(TString &line)
Definition TKeyResult.cxx:121
TString _sstrbeg
Definition TKeyResult.h:56
virtual ~TKeyFinder()
Definition TKeyResult.cxx:93
TString _svecend
Definition TKeyResult.h:56
URANIE::DataServer::TAttribute * _att
Definition TKeyResult.h:59
TRegexp _re_full
Definition TKeyResult.h:55
void setVectorProperties(TString beg, TString delim, TString end)
Definition TKeyResult.cxx:66
TString _svecbeg
Definition TKeyResult.h:56
TString _svecdel
Definition TKeyResult.h:56
TRegexp _re_equ
Definition TKeyResult.h:55
double get(TString &)
Definition TKeyResult.cxx:109
TRegexp _re_fin
Definition TKeyResult.h:55
void setStringProperties(TString beg, TString end)
Definition TKeyResult.cxx:85
TString _sstrend
Definition TKeyResult.h:56
TString getVectorProperties()
Definition TKeyResult.h:70
Definition TKeyResult.h:75
TString _path
Definition TKeyResult.h:77
virtual ~TKeyResult(void)
Definition TKeyResult.cxx:147
int get(TString &, Double_t *)
Definition TKeyResult.cxx:217
void clearFile(TString tmpdir)
Definition TKeyResult.cxx:361
TObjArray _vars
Definition TKeyResult.h:78
void setVectorProperties(TString beg, TString delim, TString end)
Definition TKeyResult.cxx:159
void build(TObjArray *)
Definition TKeyResult.cxx:208
void setOutputs(int, URANIE::DataServer::TAttribute *at, const char *key,...)
Definition TKeyResult.cxx:186
bool _bnoVectorSpecificities
Definition TKeyResult.h:79
void setStringProperties(TString beg, TString end)
Definition TKeyResult.cxx:170
void addOutput(URANIE::DataServer::TAttribute *at, const char *key)
Definition TKeyResult.cxx:180
Definition TBaseEval.cxx:44