English Français

Documentation / Developer's manual

Available modules

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / Launcher: TInputFileRecreate.h Source File
Uranie / Launcher v4.9.0
/* @license-end */
TInputFileRecreate.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
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
51namespace URANIE
52{
53namespace Launcher
54{
55
57
60{
61private:
64public:
65 //---------------------------------------------
69
70 TInputFileRecreate(TString str);
74
75 //---------------------------------------------
79
80 Bool_t isFileToCopy()
81 {
82 return kFALSE;
83 }
85
86 //---------------------------------------------
90
91 void setHeader(TString str)
92 {
93 _cHeaderComments = str;
94 }
95
96 TString getHeader()
97 {
98 return _cHeaderComments;
99 }
100 ;
101
106 {
107 _cHeaderComments = "";
108 }
109 ;
110
115 void setFooter(TString str)
116 {
117 _cFooterComments = str;
118 }
119
120 TString getFooter()
121 {
122 return _cFooterComments;
123 }
124 ;
125
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(Int_t &n, Double_t *val, Int_t *index = NULL);
156 void substitue(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
Interface of the class URANIE::Launcher::TInputFile.
A class for input file of a code.
Definition TInputFileRecreate.h:60
Bool_t isFileToCopy()
Gets the type of the file. This method is used to find InputFile of type 'Recreate'.
Definition TInputFileRecreate.h:80
void setFooter(TString str)
simple footer definition
Definition TInputFileRecreate.h:115
TString _cFooterComments
The string of footer comments.
Definition TInputFileRecreate.h:63
TString getFooter()
Definition TInputFileRecreate.h:120
void resetFooter()
Definition TInputFileRecreate.h:129
TString _cHeaderComments
The string of header comments.
Definition TInputFileRecreate.h:62
void setHeader(TString str)
simple header definition
Definition TInputFileRecreate.h:91
void substitue(Int_t &n, vector< URANIE::DataServer::UEntry * > *ent, Int_t *index=NULL)
TInputFileRecreate(TString str)
Default constructor.
virtual void searchIndexeAttribute(URANIE::DataServer::TAttribute *att)
search the indexes of the attribute in the input file
void substitue(Int_t &n, Double_t *val, Int_t *index=NULL)
Substitute the values of the attributes linked in the input file and write it.
TString getHeader()
Definition TInputFileRecreate.h:96
virtual ~TInputFileRecreate()
Default destructor.
void resetHeader()
Definition TInputFileRecreate.h:105
virtual void printLog(Option_t *option="")
Abstract class for an input file of a code.
Definition TInputFile.h:53
Definition TCluster.h:67