Mercurial > hg > orthanc
diff OrthancServer/ServerToolbox.cpp @ 2120:4b02ec79728a
refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 07 Nov 2016 11:19:19 +0100 |
parents | b1291df2f780 |
children | 7e8889bc95c6 |
line wrap: on
line diff
--- a/OrthancServer/ServerToolbox.cpp Sun Nov 06 11:39:04 2016 +0100 +++ b/OrthancServer/ServerToolbox.cpp Mon Nov 07 11:19:19 2016 +0100 @@ -44,7 +44,7 @@ namespace Orthanc { - namespace Toolbox + namespace ServerToolbox { void SimplifyTags(Json::Value& target, const Json::Value& source, @@ -189,9 +189,9 @@ } - static void SetMainDicomTagsInternal(IDatabaseWrapper& database, - int64_t resource, - const DicomMap& tags) + static void StoreMainDicomTagsInternal(IDatabaseWrapper& database, + int64_t resource, + const DicomMap& tags) { DicomArray flattened(tags); @@ -209,10 +209,10 @@ } - void SetMainDicomTags(IDatabaseWrapper& database, - int64_t resource, - ResourceType level, - const DicomMap& dicomSummary) + void StoreMainDicomTags(IDatabaseWrapper& database, + int64_t resource, + ResourceType level, + const DicomMap& dicomSummary) { // WARNING: The database should be locked with a transaction! @@ -229,7 +229,7 @@ case ResourceType_Study: // Duplicate the patient tags at the study level (new in Orthanc 0.9.5 - db v6) dicomSummary.ExtractPatientInformation(tags); - SetMainDicomTagsInternal(database, resource, tags); + StoreMainDicomTagsInternal(database, resource, tags); dicomSummary.ExtractStudyInformation(tags); break; @@ -246,7 +246,7 @@ throw OrthancException(ErrorCode_InternalError); } - SetMainDicomTagsInternal(database, resource, tags); + StoreMainDicomTagsInternal(database, resource, tags); } @@ -350,7 +350,7 @@ dicom.Convert(dicomSummary); database.ClearMainDicomTags(resource); - Toolbox::SetMainDicomTags(database, resource, level, dicomSummary); + StoreMainDicomTags(database, resource, level, dicomSummary); } catch (OrthancException&) {