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.10.0
/* @license-end */
TInputFile.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/>.
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 
48 namespace URANIE
49 {
50 namespace Launcher
51 {
52 
53 typedef struct unforkjob forkcode;
54 
55 class TInputFile: public TCodeFile
56 {
57 public:
58 
59  //---------------------------------------------
63  TInputFile(TString str);
66  virtual ~TInputFile();
68 
69  //---------------------------------------------
73  virtual void addAttribute(URANIE::DataServer::TAttribute*);
74 
75  Bool_t isExist();
77 
78  //---------------------------------------------
82 
86  virtual void init();
87 
89 
92  virtual void terminate();
94 
95 
96  //---------------------------------------------
104  virtual Bool_t isFileToCopy() {
105  return kTRUE;
106  }
108 
109  //---------------------------------------------
114 
118  virtual void searchIndexeAttribute(URANIE::DataServer::TAttribute* att) = 0;
119 
121 
128  virtual void substitue(forkcode *fjob, Int_t &n, Double_t *val, Int_t *index = NULL) = 0;
129  virtual void substitue(forkcode *fjob, Int_t &n, vector<URANIE::DataServer::UEntry*> *ent, Int_t *index = NULL) =0;
130  //virtual void substitue();
132 
133  //---------------------------------------------
137  virtual void printLog(Option_t *option = "");
139 
140  ClassDef(URANIE::Launcher::TInputFile, ID_LAUNCHER)
141  //Classe de
142 };
143 
144 } // Fin du namespace Launcher
145 } // Fin du namespace URANIE
146 #endif
Definition: TCluster.h:66
Abstract class for an input file of a code.
Definition: TInputFile.h:55
virtual void substitue(forkcode *fjob, 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.
struct unforkjob forkcode
Definition: TInputFile.h:53
virtual void searchIndexeAttribute(URANIE::DataServer::TAttribute *att)=0
search the indexes of the attribute in the input file
TInputFile(TString str)
Default constructor.
virtual void addAttribute(URANIE::DataServer::TAttribute *)
Add the attribute in the file.
virtual Bool_t isFileToCopy()
Get if the file must be copied (default is kTRUE)
Definition: TInputFile.h:104
Interface de la classe URANIE::Launcher::TCodeFile.
virtual void printLog(Option_t *option="")
Description of the class TCodeFile.
Definition: TCodeFile.h:75
virtual void init()
The init step.
virtual ~TInputFile()
Default destructor.
virtual void terminate()
The terminate step.