]> SALOME platform Git repositories - modules/kernel.git/blob - src/Batch/Batch_Couple.hxx
Salome HOME
PR: mergefrom_BR_BATCH_22Oct04
[modules/kernel.git] / src / Batch / Batch_Couple.hxx
1 /*
2  * Couple.hxx : 
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 #ifndef _COUPLE_H_
12 #define _COUPLE_H_
13
14 using namespace std;
15 #include <string>
16
17 namespace Batch {
18
19   class Couple
20   {
21   public:
22     // Constructeur standard
23     Couple(const string & local="", const string & remote="") : _local(local), _remote(remote) {}
24
25     // Constructeur par recopie
26     Couple(const Couple & C) : _local(C._local), _remote(C._remote) {}
27
28     // Operateur pour l'affichage sur un stream
29     friend ostream & operator << (ostream & os, const Couple & cp);
30
31     // Operateur d'affectation
32     virtual Couple & operator =(const Couple &);
33
34     // Conversion en chaine
35     virtual string str() const;
36
37     // Accesseurs
38     virtual string getLocal() const { return _local; }
39     virtual string getRemote() const { return _remote; }
40
41   protected:
42     string _local;  // chemin d'acces au fichier local
43     string _remote; // chemin d'acees au fichier distant
44
45   private:
46
47   };
48
49 }
50
51 #endif
52