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/list.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/list.h') diff --git a/src/list.h b/src/list.h index 48faf23..69cb846 100644 --- a/src/list.h +++ b/src/list.h @@ -3,6 +3,7 @@ #include "gats/object.h" #include +#include namespace Gats { @@ -16,7 +17,25 @@ namespace Gats virtual void write( Bu::Stream &rOut ) const; virtual void read( Bu::Stream &rIn, char cType ); + + void append( const char *s ); + void append( const Bu::FString &s ); + void append( int32_t i ); + void append( int64_t i ); + void append( bool b ); + void append( double d ); + using Bu::List::append; + + void prepend( const char *s ); + void prepend( const Bu::FString &s ); + void prepend( int32_t i ); + void prepend( int64_t i ); + void prepend( bool b ); + void prepend( double d ); + using Bu::List::prepend; }; }; +Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::List &l ); + #endif -- cgit v1.2.3