Salome HOME
Increment version number (2.2.3)
[modules/kernel.git] / src / Batch / Batch_JobInfo_LSF.hxx
1 /*
2  * JobInfo_LSF.hxx : 
3  *
4  * Auteur : Ivan DUTKA-MALEN - EDF R&D
5  * Mail   : mailto:ivan.dutka-malen@der.edf.fr
6  * Date   : Fri Nov 21 09:42:05 2003
7  * Projet : Salome 2
8  *
9  */
10
11 #ifndef _JOBINFO_LSF_H_
12 #define _JOBINFO_LSF_H_
13
14 extern "C" {
15
16 #include <lsf/lsf.h>
17 #include <lsf/lsbatch.h>
18 }
19 #include <string>
20 #include "Batch_RunTimeException.hxx"
21 #include "Batch_JobInfo.hxx"
22
23 namespace Batch {
24
25   class JobInfo_LSF : public JobInfo
26   {
27   public:
28     // Constructeurs et destructeur
29     JobInfo_LSF() : _running(false) {};
30     JobInfo_LSF(int id);
31     virtual ~JobInfo_LSF();
32
33     // Constructeur par recopie
34     JobInfo_LSF(const JobInfo_LSF & jinfo) : JobInfo(jinfo) {};
35
36     // Teste si un job est present en machine
37     virtual bool isRunning() const;
38
39     // Methodes pour l'interfacage avec Python (SWIG)
40     // TODO : supprimer ces methodes et transferer leur definitions dans SWIG
41     string  __str__() const; // SWIG : affichage en Python
42     string  __repr__() const { return __str__(); }; // SWIG : affichage en Python
43
44   protected:
45     bool _running; // etat du job en machine
46
47   private:
48     // Convertit une date HH:MM:SS en secondes
49     long HMStoLong(const string &);
50
51   };
52
53 }
54
55 #endif