Salome HOME
Increment version number (2.2.3)
[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 #include <string>
15
16 namespace Batch {
17
18   class Couple
19   {
20   public:
21     // Constructeur standard
22     Couple(const std::string & local="", const std::string & remote="") : _local(local), _remote(remote) {}
23
24     // Constructeur par recopie
25     Couple(const Couple & C) : _local(C._local), _remote(C._remote) {}
26
27     // Operateur pour l'affichage sur un stream
28     friend std::ostream & operator << (std::ostream & os, const Couple & cp);
29
30     // Operateur d'affectation
31     virtual Couple & operator =(const Couple &);
32
33     // Conversion en chaine
34     virtual std::string str() const;
35
36     // Accesseurs
37     virtual std::string getLocal() const { return _local; }
38     virtual std::string getRemote() const { return _remote; }
39
40   protected:
41     std::string _local;  // chemin d'acces au fichier local
42     std::string _remote; // chemin d'acees au fichier distant
43
44   private:
45
46   };
47
48 }
49
50 #endif
51