aboutsummaryrefslogtreecommitdiff
path: root/src/integer.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2010-08-27 21:53:54 +0000
committerMike Buland <eichlan@xagasoft.com>2010-08-27 21:53:54 +0000
commitc10c9ef627c7e79fde6170fe334238bbcb5d66e5 (patch)
tree4a0971d81e666e91866ddeaf9b58b952ce2fdd0a /src/integer.cpp
parent2a72923397d866f33221b9d32a3f9653d1a960e7 (diff)
downloadlibgats-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/integer.cpp')
-rw-r--r--src/integer.cpp7
1 files changed, 7 insertions, 0 deletions
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 @@
1#include "gats/integer.h" 1#include "gats/integer.h"
2 2
3#include <bu/formatter.h>
4
3Gats::Integer::Integer() : 5Gats::Integer::Integer() :
4 iVal( 0 ) 6 iVal( 0 )
5{ 7{
@@ -25,3 +27,8 @@ void Gats::Integer::read( Bu::Stream &rIn, char cType )
25 readPackedInt( rIn, iVal ); 27 readPackedInt( rIn, iVal );
26} 28}
27 29
30Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::Integer &i )
31{
32 return f << "(int) " << i.getValue();
33}
34