comparison Sources/Plugin.cpp @ 60:c322c949bd8e OrthancSTL-1.1

OrthancSTL-1.1
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 22 May 2024 15:33:32 +0200
parents 41e3b79e7f4b
children b798387b085c
comparison
equal deleted inserted replaced
58:a5096a7ab7f1 60:c322c949bd8e
68 * 68 *
69 * $ python -c 'import pydicom; print(pydicom.uid.generate_uid())' 69 * $ python -c 'import pydicom; print(pydicom.uid.generate_uid())'
70 * 70 *
71 **/ 71 **/
72 static const char* const ORTHANC_STL_CREATOR_VERSION_UID_MAINLINE = "1.2.826.0.1.3680043.8.498.90514926286349109728701975613711986292"; 72 static const char* const ORTHANC_STL_CREATOR_VERSION_UID_MAINLINE = "1.2.826.0.1.3680043.8.498.90514926286349109728701975613711986292";
73 static const char* const ORTHANC_STL_CREATOR_VERSION_UID_1_1 = "1.2.826.0.1.3680043.8.498.13468660186379895313063577332103681503";
73 74
74 static const char* const GetCreatorVersionUid(const std::string& version) 75 static const char* const GetCreatorVersionUid(const std::string& version)
75 { 76 {
76 if (version == "mainline") 77 if (version == "mainline")
77 { 78 {
78 return ORTHANC_STL_CREATOR_VERSION_UID_MAINLINE; 79 return ORTHANC_STL_CREATOR_VERSION_UID_MAINLINE;
79 } 80 }
81 else if (version == "1.1")
82 {
83 return ORTHANC_STL_CREATOR_VERSION_UID_1_1;
84 }
80 else 85 else
81 { 86 {
82 throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError); 87 throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError);
83 } 88 }
84 } 89 }
85 90
86 static void FillOrthancExplorerCreatorVersionUid(std::map<std::string, std::string>& dictionary) 91 static void FillOrthancExplorerCreatorVersionUid(std::map<std::string, std::string>& dictionary)
87 { 92 {
88 dictionary["ORTHANC_STL_CREATOR_VERSION_UID_MAINLINE"] = ORTHANC_STL_CREATOR_VERSION_UID_MAINLINE; 93 dictionary["ORTHANC_STL_CREATOR_VERSION_UID_MAINLINE"] = ORTHANC_STL_CREATOR_VERSION_UID_MAINLINE;
94 dictionary["ORTHANC_STL_CREATOR_VERSION_UID_1_1"] = ORTHANC_STL_CREATOR_VERSION_UID_1_1;
89 } 95 }
90 96
91 #endif 97 #endif
92 98
93 99