Salome HOME
PR: new python function getShortHostName() in Utils_Identity.py, based on socket...
[modules/yacs.git] / src / Batch / Batch_StringType.cxx
1 /*
2  * StringType.cxx : 
3  *
4  * Auteur : Ivan DUTKA-MALEN - EDF R&D
5  * Date   : Septembre 2003
6  * Projet : SALOME 2
7  *
8  */
9
10 #include <string>
11 #include "Batch_StringType.hxx"
12 using namespace std;
13
14 namespace Batch {
15
16         // Conversion en chaine
17   string StringType::affiche() const
18   {
19     return _data;
20   }
21
22         // Operateur d'affectation
23         StringType & StringType::operator =(string s)
24   {
25     _data = s;
26     return *this;
27   }
28
29         // Conversion en chaine
30   StringType::operator string() const
31   {
32     return this->_data;
33   }
34
35         // Clone duplique l'objet et en fabrique un nouveau a l'aide de new
36         // qu'il faudra detruire ensuite manuellement
37   GenericType * StringType::clone() const
38   {
39     StringType * pS = new StringType(this->_data);
40     assert(pS != 0);
41     return pS;
42   }
43
44 }