aboutsummaryrefslogtreecommitdiff
path: root/src/list.h
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/list.h
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/list.h')
-rw-r--r--src/list.h19
1 files changed, 19 insertions, 0 deletions
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 @@
3 3
4#include "gats/object.h" 4#include "gats/object.h"
5#include <bu/list.h> 5#include <bu/list.h>
6#include <bu/fstring.h>
6 7
7namespace Gats 8namespace Gats
8{ 9{
@@ -16,7 +17,25 @@ namespace Gats
16 17
17 virtual void write( Bu::Stream &rOut ) const; 18 virtual void write( Bu::Stream &rOut ) const;
18 virtual void read( Bu::Stream &rIn, char cType ); 19 virtual void read( Bu::Stream &rIn, char cType );
20
21 void append( const char *s );
22 void append( const Bu::FString &s );
23 void append( int32_t i );
24 void append( int64_t i );
25 void append( bool b );
26 void append( double d );
27 using Bu::List<Gats::Object *>::append;
28
29 void prepend( const char *s );
30 void prepend( const Bu::FString &s );
31 void prepend( int32_t i );
32 void prepend( int64_t i );
33 void prepend( bool b );
34 void prepend( double d );
35 using Bu::List<Gats::Object *>::prepend;
19 }; 36 };
20}; 37};
21 38
39Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::List &l );
40
22#endif 41#endif