CGMES_3_0_0
Loading...
Searching...
No Matches
Boolean.hpp
1#ifndef BOOLEAN_H
2#define BOOLEAN_H
3
4#include <istream>
5#include <ostream>
6
7namespace CIMPP
8{
12 class Boolean
13 {
14 public:
15 Boolean() : value(false), initialized(false) {}
16 Boolean(bool value) : value(value), initialized(true) {}
17
18 Boolean& operator=(bool rop);
19 operator bool();
20
21 bool value;
22 bool initialized;
23
24 static const char debugName[];
25 const char* debugString() const;
26
27 friend std::istream& operator>>(std::istream& lop, Boolean& rop);
28 friend std::ostream& operator<<(std::ostream& os, const Boolean& obj);
29 };
30}
31#endif // BOOLEAN_H