English Français

Documentation / Manuel développeur

Modules disponibles

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / ReLauncher: TPyCodeEval.h Source File
Uranie / ReLauncher  v4.10.0
/* @license-end */
TPyCodeEval.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 by
6 // 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 1.4 $
22 // $State$
24 
32 #ifndef __PYCODEEVAL__
33 #define __PYCODEEVAL__
34 
35 #include <sstream>
36 
37 //ROOT
38 #include "Rtypes.h"
39 #include "TString.h"
40 #include "TList.h"
41 
42 // Uranie
43 #include "Relauncher.h"
44 #include "TCodeBase.h"
45 
46 #include "Python.h"
47 
48 namespace URANIE
49 {
50 namespace Relauncher
51 {
52 
53 class TPyCodeEval: public TCodeBase
54 {
55 protected:
56  PyObject *_fun;
57 
58 public:
59  TPyCodeEval(PyObject *fun);
60  virtual ~TPyCodeEval(void);
61 
62  virtual TEval *rebuild(int rank, Bool_t chef = kTRUE);
63  virtual Bool_t unbuild();
64  //virtual void setTmpDir(int id);
65 
66  virtual int callFunction();
67 
68  ClassDef(URANIE::Relauncher::TPyCodeEval, ID_RELAUNCHER)
69 };
70 
71 
72 }} //namespace
73 
74 #endif
75 
Definition: TBaseEval.cxx:44
virtual ~TPyCodeEval(void)
Definition: TPyCodeEval.cxx:55
gestion des répertoires fichiers de travail*
TPyCodeEval(PyObject *fun)
Definition: TPyCodeEval.cxx:53
Definition: TPyCodeEval.h:53
Definition: TCodeBase.h:120
virtual Bool_t unbuild()
Definition: TPyCodeEval.cxx:66
Definition: TEval.h:49
virtual int callFunction()
Definition: TPyCodeEval.cxx:71
virtual TEval * rebuild(int rank, Bool_t chef=kTRUE)
Definition: TPyCodeEval.cxx:57
PyObject * _fun
Definition: TPyCodeEval.h:56