Salome HOME
PR: mergefrom_BR_CCRT_11Nov04
[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 #include <string>
14 #include "Batch_GenericType.hxx"
15
16 namespace Batch {
17
18   class StringType : public GenericType
19   {
20   public:
21                 // Constructeur
22     StringType(const std::string & s="")  : _data(s) {}
23
24                 // Conversion en chaine
25     virtual std::string affiche() const;
26     virtual operator std::string() const;
27
28                 // Operateur d'affectation
29     virtual StringType & operator =(std::string);
30
31                 // Clone duplique l'objet et en fabrique un nouveau a l'aide de new
32                 // qu'il faudra detruire ensuite manuellement
33     virtual GenericType * clone() const;
34
35   protected:
36     std::string _data;
37
38   private:
39
40   };
41
42 }
43
44 #endif