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