diff options
author | Mike Buland <eichlan@xagasoft.com> | 2010-10-20 18:35:28 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2010-10-20 18:35:28 +0000 |
commit | b5eb1431c28254bfa90147f9ee4857598384be31 (patch) | |
tree | 4f111a568a975d228730f7b2a4898dc7939c8954 /src/dictionary.cpp | |
parent | d14a4c34d01102baa830c6762ef80b0dc6db6389 (diff) | |
download | libgats-b5eb1431c28254bfa90147f9ee4857598384be31.tar.gz libgats-b5eb1431c28254bfa90147f9ee4857598384be31.tar.bz2 libgats-b5eb1431c28254bfa90147f9ee4857598384be31.tar.xz libgats-b5eb1431c28254bfa90147f9ee4857598384be31.zip |
Fixed a few minor things.
Diffstat (limited to 'src/dictionary.cpp')
-rw-r--r-- | src/dictionary.cpp | 71 |
1 files changed, 67 insertions, 4 deletions
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 ) | |||
56 | } | 56 | } |
57 | } | 57 | } |
58 | 58 | ||
59 | void Gats::Dictionary::insert( const Bu::FString &sKey, int32_t i ) | 59 | void Gats::Dictionary::insert( const Bu::FString &sKey, char i ) |
60 | { | 60 | { |
61 | ((Bu::Hash<Gats::String, Gats::Object *> *)this)->insert( | 61 | ((Bu::Hash<Gats::String, Gats::Object *> *)this)->insert( |
62 | sKey, new Gats::Integer( i ) | 62 | sKey, new Gats::Integer( i ) |
63 | ); | 63 | ); |
64 | } | 64 | } |
65 | 65 | ||
66 | void Gats::Dictionary::insert( const Bu::FString &sKey, int64_t i ) | 66 | void Gats::Dictionary::insert( const Bu::FString &sKey, unsigned char i ) |
67 | { | 67 | { |
68 | ((Bu::Hash<Gats::String, Gats::Object *> *)this)->insert( | 68 | ((Bu::Hash<Gats::String, Gats::Object *> *)this)->insert( |
69 | sKey, new Gats::Integer( i ) | 69 | sKey, new Gats::Integer( i ) |
70 | ); | 70 | ); |
71 | } | 71 | } |
72 | 72 | ||
73 | /*void Gats::Dictionary::insert( const Bu::FString &sKey, bool b ) | 73 | void Gats::Dictionary::insert( const Bu::FString &sKey, signed char i ) |
74 | { | ||
75 | ((Bu::Hash<Gats::String, Gats::Object *> *)this)->insert( | ||
76 | sKey, new Gats::Integer( i ) | ||
77 | ); | ||
78 | } | ||
79 | |||
80 | void Gats::Dictionary::insert( const Bu::FString &sKey, unsigned short i ) | ||
81 | { | ||
82 | ((Bu::Hash<Gats::String, Gats::Object *> *)this)->insert( | ||
83 | sKey, new Gats::Integer( i ) | ||
84 | ); | ||
85 | } | ||
86 | |||
87 | void Gats::Dictionary::insert( const Bu::FString &sKey, signed short i ) | ||
88 | { | ||
89 | ((Bu::Hash<Gats::String, Gats::Object *> *)this)->insert( | ||
90 | sKey, new Gats::Integer( i ) | ||
91 | ); | ||
92 | } | ||
93 | |||
94 | void Gats::Dictionary::insert( const Bu::FString &sKey, unsigned int i ) | ||
95 | { | ||
96 | ((Bu::Hash<Gats::String, Gats::Object *> *)this)->insert( | ||
97 | sKey, new Gats::Integer( i ) | ||
98 | ); | ||
99 | } | ||
100 | |||
101 | void Gats::Dictionary::insert( const Bu::FString &sKey, signed int i ) | ||
102 | { | ||
103 | ((Bu::Hash<Gats::String, Gats::Object *> *)this)->insert( | ||
104 | sKey, new Gats::Integer( i ) | ||
105 | ); | ||
106 | } | ||
107 | |||
108 | void Gats::Dictionary::insert( const Bu::FString &sKey, unsigned long i ) | ||
109 | { | ||
110 | ((Bu::Hash<Gats::String, Gats::Object *> *)this)->insert( | ||
111 | sKey, new Gats::Integer( i ) | ||
112 | ); | ||
113 | } | ||
114 | |||
115 | void Gats::Dictionary::insert( const Bu::FString &sKey, signed long i ) | ||
116 | { | ||
117 | ((Bu::Hash<Gats::String, Gats::Object *> *)this)->insert( | ||
118 | sKey, new Gats::Integer( i ) | ||
119 | ); | ||
120 | } | ||
121 | |||
122 | void Gats::Dictionary::insert( const Bu::FString &sKey, unsigned long long i ) | ||
123 | { | ||
124 | ((Bu::Hash<Gats::String, Gats::Object *> *)this)->insert( | ||
125 | sKey, new Gats::Integer( i ) | ||
126 | ); | ||
127 | } | ||
128 | |||
129 | void Gats::Dictionary::insert( const Bu::FString &sKey, signed long long i ) | ||
130 | { | ||
131 | ((Bu::Hash<Gats::String, Gats::Object *> *)this)->insert( | ||
132 | sKey, new Gats::Integer( i ) | ||
133 | ); | ||
134 | } | ||
135 | |||
136 | void Gats::Dictionary::insert( const Bu::FString &sKey, bool b ) | ||
74 | { | 137 | { |
75 | Bu::Hash<Gats::String, Gats::Object *>::insert( | 138 | Bu::Hash<Gats::String, Gats::Object *>::insert( |
76 | sKey, new Gats::Boolean( b ) | 139 | sKey, new Gats::Boolean( b ) |
77 | ); | 140 | ); |
78 | }*/ | 141 | } |
79 | 142 | ||
80 | void Gats::Dictionary::insert( const Bu::FString &sKey, double d ) | 143 | void Gats::Dictionary::insert( const Bu::FString &sKey, double d ) |
81 | { | 144 | { |