From 744fe4ecbcf613ee637d00e8808f69668eac6bb2 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 8 Mar 2011 21:03:43 +0000 Subject: Added a whole load of new, cool helpers for working with dictionaries and lists. --- src/list.h | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'src/list.h') diff --git a/src/list.h b/src/list.h index 5c50fae..52dcf9c 100644 --- a/src/list.h +++ b/src/list.h @@ -7,6 +7,8 @@ namespace Gats { + class Dictionary; + class List : public Gats::Object, public Bu::List { public: @@ -22,17 +24,31 @@ namespace Gats void append( const Bu::String &s ); void append( int32_t i ); void append( int64_t i ); - void append( bool b ); void append( double d ); using Bu::List::append; + void appendStr( const Bu::String &s ); + void appendInt( int64_t i ); + void appendFloat( double d ); + void appendBool( bool b ); + void appendList( Gats::List *pL ); + void appendDict( Gats::Dictionary *pD ); + Gats::List *appendList(); + Gats::Dictionary *appendDict(); void prepend( const char *s ); void prepend( const Bu::String &s ); void prepend( int32_t i ); void prepend( int64_t i ); - void prepend( bool b ); void prepend( double d ); using Bu::List::prepend; + void prependStr( const Bu::String &s ); + void prependInt( int64_t i ); + void prependFloat( double d ); + void prependBool( bool b ); + void prependList( Gats::List *pL ); + void prependDict( Gats::Dictionary *pD ); + Gats::List *prependList(); + Gats::Dictionary *prependDict(); }; }; -- cgit v1.2.3