Salome HOME
PR: new python function getShortHostName() in Utils_Identity.py, based on socket...
[modules/yacs.git] / src / Batch / Batch_JobInfo_PBS.hxx
1 /*
2  * JobInfo_PBS.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_PBS_H_
12 #define _JOBINFO_PBS_H_
13
14 extern "C" {
15
16 #include <pbs_error.h>
17 #include <pbs_ifl.h>
18 }
19 #include <string>
20 #include "Batch_RunTimeException.hxx"
21 #include "Batch_JobInfo.hxx"
22
23 namespace Batch {
24
25   class JobInfo_PBS : public JobInfo
26   {
27   public:
28     // Constructeurs et destructeur
29     JobInfo_PBS() : JobInfo() {};
30     JobInfo_PBS(struct batch_status * stat_list, bool tobedeleted = false);
31     virtual ~JobInfo_PBS();
32
33     // Constructeur par recopie
34     JobInfo_PBS(const JobInfo_PBS & jinfo) : JobInfo(jinfo) {};
35
36     // Methodes pour l'interfacage avec Python (SWIG)
37     // TODO : supprimer ces methodes et transferer leur definitions dans SWIG
38     std::string  __str__() const; // SWIG : affichage en Python
39     std::string  __repr__() const { return __str__(); }; // SWIG : affichage en Python
40
41   protected:
42
43   private:
44     // Convertit une date HH:MM:SS en secondes
45     long HMStoLong(const std::string &);
46
47   };
48
49 }
50
51 #endif