diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-11-09 17:20:11 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-11-09 17:20:11 +0000 |
commit | d534a56d95bca7bdd812be024d9eacba4734e2b7 (patch) | |
tree | f9b98ee2b80e645a7b54e7934882be6c9f73c165 /c++-libbu++/src/boolean.h | |
parent | 61ccc86fdf06f12cb72a8b7e65286f812cf62154 (diff) | |
download | libgats-d534a56d95bca7bdd812be024d9eacba4734e2b7.tar.gz libgats-d534a56d95bca7bdd812be024d9eacba4734e2b7.tar.bz2 libgats-d534a56d95bca7bdd812be024d9eacba4734e2b7.tar.xz libgats-d534a56d95bca7bdd812be024d9eacba4734e2b7.zip |
Many changes: tabconv'd the C++ code, added a license, BSD, and docs.
Diffstat (limited to '')
-rw-r--r-- | c++-libbu++/src/boolean.h | 43 |
1 files changed, 25 insertions, 18 deletions
diff --git a/c++-libbu++/src/boolean.h b/c++-libbu++/src/boolean.h index 6b256c5..c83701c 100644 --- a/c++-libbu++/src/boolean.h +++ b/c++-libbu++/src/boolean.h | |||
@@ -1,3 +1,10 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2007-2012 Xagasoft, All rights reserved. | ||
3 | * | ||
4 | * This file is part of the libgats library and is released under the | ||
5 | * terms of the license contained in the file LICENSE. | ||
6 | */ | ||
7 | |||
1 | #ifndef GATS_BOOLEAN_H | 8 | #ifndef GATS_BOOLEAN_H |
2 | #define GATS_BOOLEAN_H | 9 | #define GATS_BOOLEAN_H |
3 | 10 | ||
@@ -5,24 +12,24 @@ | |||
5 | 12 | ||
6 | namespace Gats | 13 | namespace Gats |
7 | { | 14 | { |
8 | class Boolean : public Gats::Object | 15 | class Boolean : public Gats::Object |
9 | { | 16 | { |
10 | public: | 17 | public: |
11 | Boolean(); | 18 | Boolean(); |
12 | Boolean( bool bVal ); | 19 | Boolean( bool bVal ); |
13 | virtual ~Boolean(); | 20 | virtual ~Boolean(); |
14 | 21 | ||
15 | virtual Type getType() const { return typeBoolean; } | 22 | virtual Type getType() const { return typeBoolean; } |
16 | bool getValue() const { return bVal; } | 23 | bool getValue() const { return bVal; } |
17 | void setValue( bool b ) { bVal = b; } | 24 | void setValue( bool b ) { bVal = b; } |
18 | virtual Object *clone() const; | 25 | virtual Object *clone() const; |
19 | 26 | ||
20 | virtual void write( Bu::Stream &rOut ) const; | 27 | virtual void write( Bu::Stream &rOut ) const; |
21 | virtual void read( Bu::Stream &rIn, char cType ); | 28 | virtual void read( Bu::Stream &rIn, char cType ); |
22 | 29 | ||
23 | private: | 30 | private: |
24 | bool bVal; | 31 | bool bVal; |
25 | }; | 32 | }; |
26 | }; | 33 | }; |
27 | 34 | ||
28 | Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::Boolean &b ); | 35 | Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::Boolean &b ); |