Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/Core/Toolbox.h Thu Jul 14 09:05:22 2016 +0200 +++ b/Core/Toolbox.h Thu Jul 14 14:21:29 2016 +0200 @@ -228,5 +228,21 @@ void UriEncode(std::string& target, const std::string& source); + + std::string GetJsonStringField(const ::Json::Value& json, + const std::string& key, + const std::string& defaultValue); + + bool GetJsonBooleanField(const ::Json::Value& json, + const std::string& key, + bool defaultValue); + + int GetJsonIntegerField(const ::Json::Value& json, + const std::string& key, + int defaultValue); + + unsigned int GetJsonUnsignedIntegerField(const ::Json::Value& json, + const std::string& key, + unsigned int defaultValue); } }