English Français

Documentation / Manuel développeur

Modules disponibles

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / Launcher: TInputFile.h Source File
Uranie / Launcher v4.9.0
/* @license-end */
TInputFile.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/>.
17
35#ifndef TINPUTFILE_H
36#define TINPUTFILE_H
37
38// URANIE
39#include "Launcher.h"
40#include "TCodeFile.h"
41#include "UExceptions.h"
42
43
44#define DEFAULT_FMU_WORKING_DIRECTORY "URANIE_FMU"
45#define CTEST_RETURN_SUCCESS 0
46#define CTEST_RETURN_FAIL 1
47
48namespace URANIE
49{
50namespace Launcher
51{
52class TInputFile: public TCodeFile
53{
54public:
55
56 //---------------------------------------------
60
61 TInputFile(TString str);
63 virtual ~TInputFile();
65
66 //---------------------------------------------
70 virtual void addAttribute(URANIE::DataServer::TAttribute*);
71
72 Bool_t isExist();
74
75 //---------------------------------------------
79
83 virtual void init();
84
86
89 virtual void terminate();
91
92
93 //---------------------------------------------
101 virtual Bool_t isFileToCopy() {
102 return kTRUE;
103 }
105
106 //---------------------------------------------
111
115 virtual void searchIndexeAttribute(URANIE::DataServer::TAttribute* att) = 0;
116
118
125 virtual void substitue(Int_t &n, Double_t *val, Int_t *index = NULL) = 0;
126 virtual void substitue(Int_t &n, vector<URANIE::DataServer::UEntry*> *ent, Int_t *index = NULL) =0;
127 //virtual void substitue();
129
130 //---------------------------------------------
134 virtual void printLog(Option_t *option = "");
136
137 ClassDef(URANIE::Launcher::TInputFile, ID_LAUNCHER)
138 //Classe de
139};
140
141} // Fin du namespace Launcher
142} // Fin du namespace URANIE
143#endif
Interface de la classe URANIE::Launcher::TCodeFile.
Description of the class TCodeFile.
Definition TCodeFile.h:71
Abstract class for an input file of a code.
Definition TInputFile.h:53
virtual ~TInputFile()
Default destructor.
virtual Bool_t isFileToCopy()
Get if the file must be copied (default is kTRUE)
Definition TInputFile.h:101
virtual void searchIndexeAttribute(URANIE::DataServer::TAttribute *att)=0
search the indexes of the attribute in the input file
virtual void printLog(Option_t *option="")
virtual void init()
The init step.
virtual void substitue(Int_t &n, vector< URANIE::DataServer::UEntry * > *ent, Int_t *index=NULL)=0
virtual void substitue(Int_t &n, Double_t *val, Int_t *index=NULL)=0
Substitute the values of the attributes linked in the input file and write it.
virtual void addAttribute(URANIE::DataServer::TAttribute *)
Add the attribute in the file.
virtual void terminate()
The terminate step.
TInputFile(TString str)
Default constructor.
Definition TCluster.h:67