Salome HOME
ebaacdc75d5699589d658863acc0ff14511b5cc8
[tools/libbatch.git] / src / LSF / Batch_Job_LSF.hxx
1 //  Copyright (C) 2007-2012  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_LSF.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_LSF_H_
33 #define _JOB_LSF_H_
34
35 extern "C" {
36
37 #include <lsf/lsf.h>
38 #include <lsf/lsbatch.h>
39 }
40 #include <string>
41 #include "Batch_Job.hxx"
42
43 namespace Batch {
44
45   class Job_LSF
46   {
47   public:
48     // Constructeur et destructeur
49     Job_LSF(const Job & job);
50     virtual ~Job_LSF();
51
52     // Accesseurs
53     struct submit * getSubmitStruct();
54
55   protected:
56     struct submit * _p_submit; // structure pour soumettre les jobs
57
58   private:
59     struct submit * ParametreToSubmitStruct(const Parametre & P);
60     char * string2char(const std::string &);
61   };
62
63 }
64
65 #endif