comparison Core/SerializationToolbox.cpp @ 3870:09798f2b985f transcoding

added a Timeout argument to every DICOM command + 'TargetAet' not mandatory anymore in /retrieve
author Alain Mazy <alain@mazy.be>
date Wed, 29 Apr 2020 12:26:51 +0200
parents f6a73611ec5c
children 5d2348b39392
comparison
equal deleted inserted replaced
3869:c23ef85c7d9c 3870:09798f2b985f
96 return value[field.c_str()].asInt(); 96 return value[field.c_str()].asInt();
97 } 97 }
98 } 98 }
99 99
100 100
101 int ReadInteger(const Json::Value& value,
102 const std::string& field,
103 int defaultValue)
104 {
105 if (value.isMember(field.c_str()))
106 {
107 return ReadInteger(value, field);
108 }
109 else
110 {
111 return defaultValue;
112 }
113 }
114
115
101 unsigned int ReadUnsignedInteger(const Json::Value& value, 116 unsigned int ReadUnsignedInteger(const Json::Value& value,
102 const std::string& field) 117 const std::string& field)
103 { 118 {
104 int tmp = ReadInteger(value, field); 119 int tmp = ReadInteger(value, field);
105 120