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