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/integer.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/integer.cpp') diff --git a/src/integer.cpp b/src/integer.cpp index ad48eaf..2a713e3 100644 --- a/src/integer.cpp +++ b/src/integer.cpp @@ -1,5 +1,7 @@ #include "gats/integer.h" +#include + Gats::Integer::Integer() : iVal( 0 ) { @@ -25,3 +27,8 @@ void Gats::Integer::read( Bu::Stream &rIn, char cType ) readPackedInt( rIn, iVal ); } +Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::Integer &i ) +{ + return f << "(int) " << i.getValue(); +} + -- cgit v1.2.3