diff options
Diffstat (limited to '')
-rw-r--r-- | src/list.h | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -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 | ||
7 | namespace Gats | 8 | namespace 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 | ||
39 | Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::List &l ); | ||
40 | |||
22 | #endif | 41 | #endif |