Mercurial > hg > orthanc
diff OrthancFramework/Sources/SerializationToolbox.cpp @ 4451:f4dbdb2dcba6
new configuration option "MaximumPduLength" to tune the maximum PDU length
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 18 Jan 2021 14:51:52 +0100 |
parents | d9473bd5ed43 |
children | add0337b928a |
line wrap: on
line diff
--- a/OrthancFramework/Sources/SerializationToolbox.cpp Thu Jan 14 09:13:29 2021 +0100 +++ b/OrthancFramework/Sources/SerializationToolbox.cpp Mon Jan 18 14:51:52 2021 +0100 @@ -117,6 +117,21 @@ } + unsigned int SerializationToolbox::ReadUnsignedInteger(const Json::Value& value, + const std::string& field, + unsigned int defaultValue) + { + if (value.isMember(field.c_str())) + { + return ReadUnsignedInteger(value, field); + } + else + { + return defaultValue; + } + } + + bool SerializationToolbox::ReadBoolean(const Json::Value& value, const std::string& field) {