Salome HOME
Initial import: adding files
[tools/libbatch.git] / src / Local / Batch_Job_Local.hxx
1 //  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 //  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 //  This library is free software; you can redistribute it and/or
7 //  modify it under the terms of the GNU Lesser General Public
8 //  License as published by the Free Software Foundation; either
9 //  version 2.1 of the License.
10 //
11 //  This library is distributed in the hope that it will be useful,
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 //  Lesser General Public License for more details.
15 //
16 //  You should have received a copy of the GNU Lesser General Public
17 //  License along with this library; if not, write to the Free Software
18 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 /*
23  * Job_Local.hxx : 
24  *
25  * Auteur : Ivan DUTKA-MALEN - EDF R&D
26  * Mail   : mailto:ivan.dutka-malen@der.edf.fr
27  * Date   : Fri Nov 14 11:00:39 2003
28  * Projet : Salome 2
29  *
30  */
31
32 #ifndef _JOB_LOCAL_H_
33 #define _JOB_LOCAL_H_
34
35 #include "Batch_Parametre.hxx"
36 #include "Batch_Environnement.hxx"
37 #include "Batch_Job.hxx"
38
39 namespace Batch {
40
41   class Job_Local
42   {
43   public:
44     // Constructeur et destructeur
45     Job_Local(const Job & job);
46     virtual ~Job_Local();
47
48     // Retourne la commande _command
49     virtual std::string getCommand(void) const;
50
51     // Retourne l'objet Parametre
52     virtual Parametre getParametre() const;
53
54     // Retourne l'objet Environnement
55     virtual Environnement getEnvironnement() const;
56
57
58   protected:
59     std::string _command;
60     Parametre _param;
61     Environnement _env;
62
63   private:
64     void addParametre(const Parametre & P);
65     void addEnvironnement(const Environnement & E);
66
67   };
68
69 }
70
71 #endif