aboutsummaryrefslogtreecommitdiff
path: root/src/boolean.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/boolean.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/boolean.h b/src/boolean.h
new file mode 100644
index 0000000..3035b32
--- /dev/null
+++ b/src/boolean.h
@@ -0,0 +1,27 @@
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
19 virtual void write( Bu::Stream &rOut ) const;
20 virtual void read( Bu::Stream &rIn, char cType );
21
22 private:
23 bool bVal;
24 };
25};
26
27#endif