]> SALOME platform Git repositories - modules/kernel.git/blob - src/Batch/Batch_Couple.cxx
Salome HOME
PR: mergefrom_BR_BATCH_22Oct04
[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
13 namespace Batch {
14
15         // Operateur d'affectation
16         Couple & Couple::operator =(const Couple & C)
17   {
18                 _local  = C._local;
19                 _remote = C._remote;
20     return *this;
21   }
22
23         // Conversion en chaine
24   string Couple::str()  const
25   {
26                 string res;
27                 res  = "Couple(local : ";
28                 res += _local;
29                 res += ", remote : ";
30                 res += _remote;
31                 res += ")";
32     return res;
33   }
34
35         // Operateur pour l'affichage sur un stream
36   ostream & operator << (ostream & os, const Couple & cp)
37   {
38     return os << cp.str();
39   }
40
41 }