comparison OrthancServer/ServerContext.cpp @ 2120:4b02ec79728a

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 07 Nov 2016 11:19:19 +0100
parents fabf7820d1f1
children 2ecc95a239f7
comparison
equal deleted inserted replaced
2119:e0517f25919e 2120:4b02ec79728a
187 187
188 DicomInstanceHasher hasher(dicom.GetSummary()); 188 DicomInstanceHasher hasher(dicom.GetSummary());
189 resultPublicId = hasher.HashInstance(); 189 resultPublicId = hasher.HashInstance();
190 190
191 Json::Value simplifiedTags; 191 Json::Value simplifiedTags;
192 Toolbox::SimplifyTags(simplifiedTags, dicom.GetJson(), DicomToJsonFormat_Human); 192 ServerToolbox::SimplifyTags(simplifiedTags, dicom.GetJson(), DicomToJsonFormat_Human);
193 193
194 // Test if the instance must be filtered out 194 // Test if the instance must be filtered out
195 bool accepted = true; 195 bool accepted = true;
196 196
197 { 197 {
296 } 296 }
297 catch (OrthancException& e) 297 catch (OrthancException& e)
298 { 298 {
299 if (e.GetErrorCode() == ErrorCode_InexistentTag) 299 if (e.GetErrorCode() == ErrorCode_InexistentTag)
300 { 300 {
301 Toolbox::LogMissingRequiredTag(dicom.GetSummary()); 301 ServerToolbox::LogMissingRequiredTag(dicom.GetSummary());
302 } 302 }
303 303
304 throw; 304 throw;
305 } 305 }
306 } 306 }