English Français

Documentation / Manuel développeur

Modules disponibles

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / Launcher: TInputFileXML.h Source File
Uranie / Launcher  v4.10.0
/* @license-end */
TInputFileXML.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
6 // by 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
22 // $State$
24 
42 #ifndef TINPUTFILEXML_H
43 #define TINPUTFILEXML_H
44 
45 // ROOT
46 #include "Rtypes.h"
47 #include "TString.h"
48 // URANIE
49 #include "TAttribute.h"
50 #include "TInputFile.h"
51 
52 namespace URANIE
53 {
54 namespace Launcher
55 {
56 
58 {
59 public:
60  //---------------------------------------------
64  TInputFileXML(TString str);
67  virtual ~TInputFileXML();
69 
70  //---------------------------------------------
74  Bool_t isFileToCopy()
76  {
77  return kFALSE;
78  }
80 
83  TString getAttributeInKey(TString skey);
85  TString getFieldInKey(TString skey);
86 
88 
89  //---------------------------------------------
93 
97  virtual void searchIndexeAttribute(URANIE::DataServer::TAttribute* att);
99 
106  void substitue(forkcode *fjob, Int_t &n, Double_t *val, Int_t *index = NULL);
107  void substitue(forkcode *fjob, Int_t &n, vector<URANIE::DataServer::UEntry*> *ent, Int_t *index = NULL);
109 
110  //---------------------------------------------
114  virtual void printLog(Option_t *option = "");
116 
117  ClassDef(URANIE::Launcher::TInputFileXML, ID_LAUNCHER)
118  //Classe de
119 };
120 
121 } // Fin du namespace Launcher
122 } // Fin du namespace URANIE
123 #endif
Definition: TCluster.h:66
TString getFieldInKey(TString skey)
Return the last field in the key.
virtual void searchIndexeAttribute(URANIE::DataServer::TAttribute *att)
search the indexes of the attribute in the input file
TInputFileXML(TString str)
Default constructor.
Interface of the class URANIE::Launcher::TInputFile.
Abstract class for an input file of a code.
Definition: TInputFile.h:55
TString getAttributeInKey(TString skey)
Return the name of the attribute for the key.
struct unforkjob forkcode
Definition: TInputFile.h:53
void substitue(forkcode *fjob, Int_t &n, Double_t *val, Int_t *index=NULL)
Substitute the values of the attributes linked in the input file and write it.
Bool_t isFileToCopy()
Gets the type of the file. This method is used to find InputFile of type &#39;Recreate&#39;.
Definition: TInputFileXML.h:75
virtual void printLog(Option_t *option="")
virtual ~TInputFileXML()
Default destructor.
Description of the class TInputFileXML.
Definition: TInputFileXML.h:57