English Français

Documentation / Manuel développeur

Modules disponibles

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / Launcher: TLocalServer.h Source File
Uranie / Launcher  v4.10.0
/* @license-end */
TLocalServer.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 TLOCALSERVER_H
42 #define TLOCALSERVER_H
43 
44 #include <iostream>
45 #include <sstream>
46 
47 using std::cout;
48 using std::endl;
49 using std::istringstream;
50 using std::string;
51 
52 //ROOT
53 #include "Rtypes.h"
54 #include "TRegexp.h"
55 
56 // Uranie
57 #include "TCluster.h"
58 
59 namespace URANIE
60 {
61 namespace Launcher
62 {
63 class TLocalServer: public TCluster
64 {
65 private:
66  static TRegexp __Cre;
67  static int __Cnnode;
68  static TString __Chost;
69 
70  static const char *nodeList();
71 public:
72  static bool eligible(Option_t*);
73 
74  //---------------------------------------------
78  TLocalServer();
81  virtual ~TLocalServer();
83 
84  //---------------------------------------------
88  virtual void init();
90  virtual void getCommandPrefix(char *, char *);
92 
93  //---------------------------------------------
97  void setLog()
98  {
99  _blog = kTRUE;
100  }
101  void unsetLog()
102  {
103  _blog = kFALSE;
104  }
105  void changeLog()
106  {
107  _blog = _blog ? kFALSE : kTRUE;
108  }
109  Bool_t getLog()
110  {
111  return _blog;
112  }
113  virtual void printLog(Option_t *option = "");
115 
116  ClassDef(URANIE::Launcher::TLocalServer, ID_LAUNCHER)
117  //Classe de
118 };
119 
120 } // Fin du namespace Launcher
121 } // Fin du namespace URANIE
122 #endif
123 
Definition: TCluster.h:66
virtual void getCommandPrefix(char *, char *)
void unsetLog()
Definition: TLocalServer.h:101
Description of the class TCluster.
Definition: TCluster.h:70
void setLog()
Definition: TLocalServer.h:97
static TRegexp __Cre
Definition: TLocalServer.h:66
Bool_t _blog
Boolean to edit the log.
Definition: TCluster.h:73
static const char * nodeList()
virtual void printLog(Option_t *option="")
Bool_t getLog()
Definition: TLocalServer.h:109
Interface of the class URANIE::Launcher::TCluster.
static TString __Chost
Definition: TLocalServer.h:68
virtual void init()
Construct and return the list of nodes.
Definition: TLocalServer.h:63
TLocalServer()
Default constructor.
static bool eligible(Option_t *)
virtual ~TLocalServer()
Default destructor.
static int __Cnnode
Definition: TLocalServer.h:67
void changeLog()
Definition: TLocalServer.h:105