diff options
author | Mike Buland <eichlan@xagasoft.com> | 2010-08-14 07:12:29 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2010-08-14 07:12:29 +0000 |
commit | 1b797548dff7e2475826ba29a71c3f496008988f (patch) | |
tree | 2a81ee2e8fa2f17fd95410aabbf44533d35a727a /src/boolean.h | |
download | libgats-1b797548dff7e2475826ba29a71c3f496008988f.tar.gz libgats-1b797548dff7e2475826ba29a71c3f496008988f.tar.bz2 libgats-1b797548dff7e2475826ba29a71c3f496008988f.tar.xz libgats-1b797548dff7e2475826ba29a71c3f496008988f.zip |
libgats gets it's own repo. The rest of the history is in my misc repo.
Diffstat (limited to 'src/boolean.h')
-rw-r--r-- | src/boolean.h | 27 |
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 | |||
6 | namespace 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 | ||