From c10c9ef627c7e79fde6170fe334238bbcb5d66e5 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 27 Aug 2010 21:53:54 +0000 Subject: Added formatter handlers for debugging, works really well. Also added a bunch more helpers to make it as easy to use as possible. --- src/boolean.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/boolean.cpp') 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 @@ #include "gats/boolean.h" +#include #include Gats::Boolean::Boolean() : @@ -40,3 +41,8 @@ void Gats::Boolean::read( Bu::Stream &rIn, char cType ) } } +Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::Boolean &b ) +{ + return f << "(bool) " << b.getValue(); +} + -- cgit v1.2.3