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