Salome HOME
Porting to Mandrake 10.1 and new products:
[modules/kernel.git] / src / Batch / Batch_LongType.hxx
1 /*
2  * LongType.hxx : 
3  *
4  * Auteur : Ivan DUTKA-MALEN - EDF R&D
5  * Date   : Septembre 2003
6  * Projet : SALOME 2
7  *
8  */
9
10 #ifndef _LONGTYPE_H_
11 #define _LONGTYPE_H_
12
13 #include <string>
14 #include "Batch_GenericType.hxx"
15
16 namespace Batch {
17
18   class LongType : public GenericType
19   {
20   public:
21                 // Constructeur
22     LongType(const long l=0L) : _data(l) {}
23
24                 // Conversion en chaine
25     virtual std::string affiche() const;
26
27                 // Operateur d'affectation
28     virtual LongType & operator =(long);
29
30                 // Conversion en long
31     virtual operator long() const;
32
33                 // Clone duplique l'objet et en fabrique un nouveau a l'aide de new
34                 // qu'il faudra detruire ensuite manuellement
35     virtual GenericType * clone() const;
36
37   protected:
38     long _data;
39
40   private:
41
42   };
43
44 }
45
46 #endif