Mercurial > hg > orthanc
comparison Plugins/Engine/OrthancPluginDatabase.cpp @ 1668:de1413733c97 db-changes
reconstructing main dicom tags
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 30 Sep 2015 17:18:39 +0200 |
parents | 2e692c83e2f3 |
children | 4c5a85c3ff43 |
comparison
equal
deleted
inserted
replaced
1667:9e875db36aef | 1668:de1413733c97 |
---|---|
983 throw OrthancException(static_cast<ErrorCode>(error)); | 983 throw OrthancException(static_cast<ErrorCode>(error)); |
984 } | 984 } |
985 } | 985 } |
986 | 986 |
987 | 987 |
988 void OrthancPluginDatabase::ClearMainDicomTags(int64_t id) | |
989 { | |
990 if (extensions_.clearMainDicomTags != NULL) | |
991 { | |
992 LOG(ERROR) << "Your custom index plugin does not implement the ClearMainDicomTags() extension"; | |
993 throw OrthancException(ErrorCode_DatabasePlugin); | |
994 } | |
995 | |
996 OrthancPluginErrorCode error = extensions_.clearMainDicomTags(payload_, id); | |
997 | |
998 if (error != OrthancPluginErrorCode_Success) | |
999 { | |
1000 errorDictionary_.LogError(error, true); | |
1001 throw OrthancException(static_cast<ErrorCode>(error)); | |
1002 } | |
1003 } | |
1004 | |
1005 | |
988 void OrthancPluginDatabase::SetMainDicomTag(int64_t id, | 1006 void OrthancPluginDatabase::SetMainDicomTag(int64_t id, |
989 const DicomTag& tag, | 1007 const DicomTag& tag, |
990 const std::string& value) | 1008 const std::string& value) |
991 { | 1009 { |
992 OrthancPluginDicomTag tmp; | 1010 OrthancPluginDicomTag tmp; |