aboutsummaryrefslogtreecommitdiff
path: root/c++-libbu++/src/boolean.h
diff options
context:
space:
mode:
Diffstat (limited to 'c++-libbu++/src/boolean.h')
-rw-r--r--c++-libbu++/src/boolean.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/c++-libbu++/src/boolean.h b/c++-libbu++/src/boolean.h
new file mode 100644
index 0000000..6b256c5
--- /dev/null
+++ b/c++-libbu++/src/boolean.h
@@ -0,0 +1,30 @@
1#ifndef GATS_BOOLEAN_H
2#define GATS_BOOLEAN_H
3
4#include "gats/object.h"
5
6namespace Gats
7{
8 class Boolean : public Gats::Object
9 {
10 public:
11 Boolean();
12 Boolean( bool bVal );
13 virtual ~Boolean();
14
15 virtual Type getType() const { return typeBoolean; }
16 bool getValue() const { return bVal; }
17 void setValue( bool b ) { bVal = b; }
18 virtual Object *clone() const;
19
20 virtual void write( Bu::Stream &rOut ) const;
21 virtual void read( Bu::Stream &rIn, char cType );
22
23 private:
24 bool bVal;
25 };
26};
27
28Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::Boolean &b );
29
30#endif