comparison Core/Toolbox.h @ 2071:27fd34970c52

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 14 Jul 2016 14:21:29 +0200
parents 272094362301
children 14ce887a9182
comparison
equal deleted inserted replaced
2070:7e6afa0beaf6 2071:27fd34970c52
226 FILE* OpenFile(const std::string& path, 226 FILE* OpenFile(const std::string& path,
227 FileMode mode); 227 FileMode mode);
228 228
229 void UriEncode(std::string& target, 229 void UriEncode(std::string& target,
230 const std::string& source); 230 const std::string& source);
231
232 std::string GetJsonStringField(const ::Json::Value& json,
233 const std::string& key,
234 const std::string& defaultValue);
235
236 bool GetJsonBooleanField(const ::Json::Value& json,
237 const std::string& key,
238 bool defaultValue);
239
240 int GetJsonIntegerField(const ::Json::Value& json,
241 const std::string& key,
242 int defaultValue);
243
244 unsigned int GetJsonUnsignedIntegerField(const ::Json::Value& json,
245 const std::string& key,
246 unsigned int defaultValue);
231 } 247 }
232 } 248 }