diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2010-08-27 21:53:54 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2010-08-27 21:53:54 +0000 |
| commit | c10c9ef627c7e79fde6170fe334238bbcb5d66e5 (patch) | |
| tree | 4a0971d81e666e91866ddeaf9b58b952ce2fdd0a /src/boolean.cpp | |
| parent | 2a72923397d866f33221b9d32a3f9653d1a960e7 (diff) | |
| download | libgats-c10c9ef627c7e79fde6170fe334238bbcb5d66e5.tar.gz libgats-c10c9ef627c7e79fde6170fe334238bbcb5d66e5.tar.bz2 libgats-c10c9ef627c7e79fde6170fe334238bbcb5d66e5.tar.xz libgats-c10c9ef627c7e79fde6170fe334238bbcb5d66e5.zip | |
Added formatter handlers for debugging, works really well. Also added a bunch
more helpers to make it as easy to use as possible.
Diffstat (limited to 'src/boolean.cpp')
| -rw-r--r-- | src/boolean.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/boolean.cpp b/src/boolean.cpp index 087845a..e0600f2 100644 --- a/src/boolean.cpp +++ b/src/boolean.cpp | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | #include "gats/boolean.h" | 1 | #include "gats/boolean.h" |
| 2 | 2 | ||
| 3 | #include <bu/formatter.h> | ||
| 3 | #include <bu/stream.h> | 4 | #include <bu/stream.h> |
| 4 | 5 | ||
| 5 | Gats::Boolean::Boolean() : | 6 | Gats::Boolean::Boolean() : |
| @@ -40,3 +41,8 @@ void Gats::Boolean::read( Bu::Stream &rIn, char cType ) | |||
| 40 | } | 41 | } |
| 41 | } | 42 | } |
| 42 | 43 | ||
| 44 | Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::Boolean &b ) | ||
| 45 | { | ||
| 46 | return f << "(bool) " << b.getValue(); | ||
| 47 | } | ||
| 48 | |||
