diff options
Diffstat (limited to 'c++-libbu++/src/boolean.h')
-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 ); |