From b5eb1431c28254bfa90147f9ee4857598384be31 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 20 Oct 2010 18:35:28 +0000 Subject: Fixed a few minor things. --- src/dictionary.cpp | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 67 insertions(+), 4 deletions(-) (limited to 'src/dictionary.cpp') diff --git a/src/dictionary.cpp b/src/dictionary.cpp index 29bbd4e..9b84518 100644 --- a/src/dictionary.cpp +++ b/src/dictionary.cpp @@ -56,26 +56,89 @@ void Gats::Dictionary::read( Bu::Stream &rIn, char cType ) } } -void Gats::Dictionary::insert( const Bu::FString &sKey, int32_t i ) +void Gats::Dictionary::insert( const Bu::FString &sKey, char i ) { ((Bu::Hash *)this)->insert( sKey, new Gats::Integer( i ) ); } -void Gats::Dictionary::insert( const Bu::FString &sKey, int64_t i ) +void Gats::Dictionary::insert( const Bu::FString &sKey, unsigned char i ) { ((Bu::Hash *)this)->insert( sKey, new Gats::Integer( i ) ); } -/*void Gats::Dictionary::insert( const Bu::FString &sKey, bool b ) +void Gats::Dictionary::insert( const Bu::FString &sKey, signed char i ) +{ + ((Bu::Hash *)this)->insert( + sKey, new Gats::Integer( i ) + ); +} + +void Gats::Dictionary::insert( const Bu::FString &sKey, unsigned short i ) +{ + ((Bu::Hash *)this)->insert( + sKey, new Gats::Integer( i ) + ); +} + +void Gats::Dictionary::insert( const Bu::FString &sKey, signed short i ) +{ + ((Bu::Hash *)this)->insert( + sKey, new Gats::Integer( i ) + ); +} + +void Gats::Dictionary::insert( const Bu::FString &sKey, unsigned int i ) +{ + ((Bu::Hash *)this)->insert( + sKey, new Gats::Integer( i ) + ); +} + +void Gats::Dictionary::insert( const Bu::FString &sKey, signed int i ) +{ + ((Bu::Hash *)this)->insert( + sKey, new Gats::Integer( i ) + ); +} + +void Gats::Dictionary::insert( const Bu::FString &sKey, unsigned long i ) +{ + ((Bu::Hash *)this)->insert( + sKey, new Gats::Integer( i ) + ); +} + +void Gats::Dictionary::insert( const Bu::FString &sKey, signed long i ) +{ + ((Bu::Hash *)this)->insert( + sKey, new Gats::Integer( i ) + ); +} + +void Gats::Dictionary::insert( const Bu::FString &sKey, unsigned long long i ) +{ + ((Bu::Hash *)this)->insert( + sKey, new Gats::Integer( i ) + ); +} + +void Gats::Dictionary::insert( const Bu::FString &sKey, signed long long i ) +{ + ((Bu::Hash *)this)->insert( + sKey, new Gats::Integer( i ) + ); +} + +void Gats::Dictionary::insert( const Bu::FString &sKey, bool b ) { Bu::Hash::insert( sKey, new Gats::Boolean( b ) ); -}*/ +} void Gats::Dictionary::insert( const Bu::FString &sKey, double d ) { -- cgit v1.2.3