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