Salome HOME
PR: mergefrom_BR_BATCH_22Oct04
[modules/kernel.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
13 namespace Batch {
14
15         // Conversion en chaine
16   string StringType::affiche() const
17   {
18     return _data;
19   }
20
21         // Operateur d'affectation
22         StringType & StringType::operator =(string s)
23   {
24     _data = s;
25     return *this;
26   }
27
28         // Conversion en chaine
29   StringType::operator string() const
30   {
31     return this->_data;
32   }
33
34         // Clone duplique l'objet et en fabrique un nouveau a l'aide de new
35         // qu'il faudra detruire ensuite manuellement
36   GenericType * StringType::clone() const
37   {
38     StringType * pS = new StringType(this->_data);
39     assert(pS != 0);
40     return pS;
41   }
42
43 }