Salome HOME
Porting to Mandrake 10.1 and new products:
[modules/kernel.git] / src / Batch / Batch_BoolType.hxx
1 /*
2  * BoolType.hxx : 
3  *
4  * Auteur : Ivan DUTKA-MALEN - EDF R&D
5  * Date   : Septembre 2003
6  * Projet : SALOME 2
7  *
8  */
9
10 #ifndef _BOOLTYPE_H_
11 #define _BOOLTYPE_H_
12
13 #include <string>
14 #include "Batch_GenericType.hxx"
15
16 namespace Batch {
17
18   class BoolType : public GenericType
19   {
20   public:
21                 // Constructeur
22     BoolType(const bool b=false) : _data(b) {}
23
24                 // Conversion en chaine
25     virtual std::string affiche() const;
26
27                 // Operateur d'affectation
28     virtual BoolType & operator =(bool);
29
30                 // Conversion en bool
31     virtual operator bool() 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     bool _data;
39
40   private:
41
42   };
43
44 }
45
46 #endif