Salome HOME
PR: mergefrom_BR_BATCH_22Oct04
[modules/kernel.git] / src / Batch / Batch_StringType.hxx
1 /*
2  * StringType.hxx : 
3  *
4  * Auteur : Ivan DUTKA-MALEN - EDF R&D
5  * Date   : Septembre 2003
6  * Projet : SALOME 2
7  *
8  */
9
10 #ifndef _STRINGTYPE_H_
11 #define _STRINGTYPE_H_
12
13 using namespace std;
14 #include <string>
15 #include "Batch_GenericType.hxx"
16
17 namespace Batch {
18
19   class StringType : public GenericType
20   {
21   public:
22                 // Constructeur
23     StringType(const string & s="")  : _data(s) {}
24
25                 // Conversion en chaine
26     virtual string affiche() const;
27     virtual operator string() const;
28
29                 // Operateur d'affectation
30     virtual StringType & operator =(string);
31
32                 // Clone duplique l'objet et en fabrique un nouveau a l'aide de new
33                 // qu'il faudra detruire ensuite manuellement
34     virtual GenericType * clone() const;
35
36   protected:
37     string _data;
38
39   private:
40
41   };
42
43 }
44
45 #endif