Salome HOME
Increment version number (2.2.3)
[modules/kernel.git] / src / Batch / Batch_Couple.cxx
1 /*
2  * Couple.cxx : 
3  *
4  * Auteur : Ivan DUTKA-MALEN - EDF R&D
5  * Mail   : mailto:ivan.dutka-malen@der.edf.fr
6  * Date   : Tue Dec  9 15:00:35 2003
7  * Projet : Salome 2
8  *
9  */
10
11 #include "Batch_Couple.hxx"
12 using namespace std;
13
14 namespace Batch {
15
16         // Operateur d'affectation
17         Couple & Couple::operator =(const Couple & C)
18   {
19                 _local  = C._local;
20                 _remote = C._remote;
21     return *this;
22   }
23
24         // Conversion en chaine
25   string Couple::str()  const
26   {
27                 string res;
28                 res  = "Couple(local : ";
29                 res += _local;
30                 res += ", remote : ";
31                 res += _remote;
32                 res += ")";
33     return res;
34   }
35
36         // Operateur pour l'affichage sur un stream
37   ostream & operator << (ostream & os, const Couple & cp)
38   {
39     return os << cp.str();
40   }
41
42 }