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