Salome HOME
Increment version number (2.2.3)
[modules/kernel.git] / src / Batch / Batch_CoupleType.cxx
1 /*
2  * CoupleType.cxx : 
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 #include <assert.h>
12 #include "Batch_CoupleType.hxx"
13 using namespace std;
14
15 namespace Batch {
16
17         // Conversion en chaine
18   string CoupleType::affiche() const
19   {
20     return _data.str();
21   }
22
23         // Operateur d'affectation
24   CoupleType & CoupleType::operator =(const Couple & C)
25   {
26     _data = C;
27     return *this;
28   }
29
30         // Conversion en char
31   CoupleType::operator Couple() const
32   {
33     return _data;
34   }
35
36         // Conversion en chaine
37   CoupleType::operator string() const
38   {
39     return _data.str();
40   }
41
42         // Clone duplique l'objet et en fabrique un nouveau a l'aide de new
43         // qu'il faudra detruire ensuite manuellement
44   GenericType * CoupleType::clone() const
45   {
46     CoupleType * pC = new CoupleType(this->_data);
47     assert(pC != 0);
48     return pC;
49   }
50
51 }
52