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