comparison OrthancFramework/Sources/Enumerations.cpp @ 4932:b7ce2bb6b881 more-tags

refactored the list of MainDicomTags to be able to change it dynamicaly. Unit tests and Integration tests ok
author Alain Mazy <am@osimis.io>
date Wed, 09 Mar 2022 11:17:08 +0100
parents 45d6ce72a84e
children afa427f65444
comparison
equal deleted inserted replaced
4930:1ce32c1ec4cf 4932:b7ce2bb6b881
53 static const char* const MIME_DICOM_WEB_JSON = "application/dicom+json"; 53 static const char* const MIME_DICOM_WEB_JSON = "application/dicom+json";
54 static const char* const MIME_DICOM_WEB_XML = "application/dicom+xml"; 54 static const char* const MIME_DICOM_WEB_XML = "application/dicom+xml";
55 static const char* const MIME_ICO = "image/x-icon"; 55 static const char* const MIME_ICO = "image/x-icon";
56 56
57 // This function is autogenerated by the script 57 // This function is autogenerated by the script
58 // "Resources/GenerateErrorCodes.py" 58 // "Resources/CodeGeneration/GenerateErrorCodes.py"
59 const char* EnumerationToString(ErrorCode error) 59 const char* EnumerationToString(ErrorCode error)
60 { 60 {
61 switch (error) 61 switch (error)
62 { 62 {
63 case ErrorCode_InternalError: 63 case ErrorCode_InternalError:
192 case ErrorCode_DatabaseCannotSerialize: 192 case ErrorCode_DatabaseCannotSerialize:
193 return "Database could not serialize access due to concurrent update, the transaction should be retried"; 193 return "Database could not serialize access due to concurrent update, the transaction should be retried";
194 194
195 case ErrorCode_Revision: 195 case ErrorCode_Revision:
196 return "A bad revision number was provided, which might indicate conflict between multiple writers"; 196 return "A bad revision number was provided, which might indicate conflict between multiple writers";
197
198 case ErrorCode_MainDicomTagsMultiplyDefined:
199 return "A main DICOM Tag has been defined multiple times for the same resource level";
197 200
198 case ErrorCode_SQLiteNotOpened: 201 case ErrorCode_SQLiteNotOpened:
199 return "SQLite: The database is not opened"; 202 return "SQLite: The database is not opened";
200 203
201 case ErrorCode_SQLiteAlreadyOpened: 204 case ErrorCode_SQLiteAlreadyOpened:
2157 } 2160 }
2158 } 2161 }
2159 2162
2160 2163
2161 // This function is autogenerated by the script 2164 // This function is autogenerated by the script
2162 // "Resources/GenerateErrorCodes.py" 2165 // "Resources/CodeGeneration/GenerateErrorCodes.py"
2163 HttpStatus ConvertErrorCodeToHttpStatus(ErrorCode error) 2166 HttpStatus ConvertErrorCodeToHttpStatus(ErrorCode error)
2164 { 2167 {
2165 switch (error) 2168 switch (error)
2166 { 2169 {
2167 case ErrorCode_Success: 2170 case ErrorCode_Success: