English Français

Documentation / Manuel développeur

Modules disponibles

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / Launcher: TInputFileRecreate.h Source File
Uranie / Launcher  v4.10.0
/* @license-end */
TInputFileRecreate.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 
41 #ifndef TINPUTFILERECREATE_H
42 #define TINPUTFILERECREATE_H
43 
44 // ROOT
45 #include "Rtypes.h"
46 #include "TString.h"
47 // URANIE
48 #include "TAttribute.h"
49 #include "TInputFile.h"
50 
51 namespace URANIE
52 {
53 namespace Launcher
54 {
55 
57 
60 {
61 private:
62  TString _cHeaderComments;
63  TString _cFooterComments;
64 public:
65  //---------------------------------------------
69  TInputFileRecreate(TString str);
72  virtual ~TInputFileRecreate();
74 
75  //---------------------------------------------
79  Bool_t isFileToCopy()
81  {
82  return kFALSE;
83  }
85 
86  //---------------------------------------------
90  void setHeader(TString str)
92  {
93  _cHeaderComments = str;
94  }
95 
96  TString getHeader()
97  {
98  return _cHeaderComments;
99  }
100  ;
101 
105  void resetHeader()
106  {
107  _cHeaderComments = "";
108  }
109  ;
110 
114  void setFooter(TString str)
116  {
117  _cFooterComments = str;
118  }
119 
120  TString getFooter()
121  {
122  return _cFooterComments;
123  }
124  ;
125 
129  void resetFooter()
130  {
131  _cFooterComments = "";
132  }
133  ;
134 
135  bool IsAWhiteLine(TString line);
137 
138  //---------------------------------------------
142 
146  virtual void searchIndexeAttribute(URANIE::DataServer::TAttribute* att);
148 
155  void substitue(forkcode *fjob, Int_t &n, Double_t *val, Int_t *index = NULL);
156  void substitue(forkcode *fjob, Int_t &n, vector<URANIE::DataServer::UEntry*> *ent, Int_t *index = NULL);
158 
159  //---------------------------------------------
163  virtual void printLog(Option_t *option = "");
165 
166  ClassDef(URANIE::Launcher::TInputFileRecreate, ID_LAUNCHER)
167  //Classe de
168 };
169 
170 } // Fin du namespace Launcher
171 } // Fin du namespace URANIE
172 #endif
Definition: TCluster.h:66
Bool_t isFileToCopy()
Gets the type of the file. This method is used to find InputFile of type &#39;Recreate&#39;.
Definition: TInputFileRecreate.h:80
Interface of the class URANIE::Launcher::TInputFile.
Abstract class for an input file of a code.
Definition: TInputFile.h:55
TInputFileRecreate(TString str)
Default constructor.
struct unforkjob forkcode
Definition: TInputFile.h:53
TString getFooter()
Definition: TInputFileRecreate.h:120
void resetFooter()
Definition: TInputFileRecreate.h:129
A class for input file of a code.
Definition: TInputFileRecreate.h:59
TString _cHeaderComments
The string of header comments.
Definition: TInputFileRecreate.h:62
TString getHeader()
Definition: TInputFileRecreate.h:96
virtual ~TInputFileRecreate()
Default destructor.
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.
virtual void printLog(Option_t *option="")
virtual void searchIndexeAttribute(URANIE::DataServer::TAttribute *att)
search the indexes of the attribute in the input file
TString _cFooterComments
The string of footer comments.
Definition: TInputFileRecreate.h:63
void setHeader(TString str)
simple header definition
Definition: TInputFileRecreate.h:91
void setFooter(TString str)
simple footer definition
Definition: TInputFileRecreate.h:115
void resetHeader()
Definition: TInputFileRecreate.h:105