Salome HOME
Increment version number (2.2.3)
[modules/kernel.git] / src / Batch / Batch_IntType.cxx
1 /*
2  * IntType.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 <sstream>
12 #include <assert.h>
13 //#include "MEDMEM_STRING.hxx"
14 #include "Batch_IntType.hxx"
15 using namespace std;
16
17
18 namespace Batch {
19
20         // Conversion en chaine
21   string IntType::affiche() const
22   {
23     //MEDMEM::STRING sst;
24     ostringstream sst;
25     sst << _data;
26     return sst.str();
27   }
28
29         // Operateur d'affectation
30   IntType & IntType::operator =(int i)
31   {
32     _data = i;
33     return *this;
34   }
35
36         // Conversion en int
37   IntType::operator int()  const
38   {
39     return this->_data;
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 * IntType::clone() const
45   {
46     IntType * pI = new IntType(this->_data);
47     assert(pI != 0);
48     return pI;
49   }
50
51 }