Mercurial > hg > orthanc
comparison Core/Enumerations.cpp @ 3737:f29843323daf storage-commitment
accessing storage commitment reports from REST API
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 10 Mar 2020 20:33:01 +0100 |
parents | e7ff4f9b34bd |
children | 9fe1d64a748c |
comparison
equal
deleted
inserted
replaced
3736:0540b54324f1 | 3737:f29843323daf |
---|---|
1166 throw OrthancException(ErrorCode_ParameterOutOfRange); | 1166 throw OrthancException(ErrorCode_ParameterOutOfRange); |
1167 } | 1167 } |
1168 } | 1168 } |
1169 | 1169 |
1170 | 1170 |
1171 const char* EnumerationToString(StorageCommitmentFailureReason reason) | |
1172 { | |
1173 switch (reason) | |
1174 { | |
1175 case StorageCommitmentFailureReason_Success: | |
1176 return "Success"; | |
1177 | |
1178 case StorageCommitmentFailureReason_ProcessingFailure: | |
1179 return "A general failure in processing the operation was encountered"; | |
1180 | |
1181 case StorageCommitmentFailureReason_NoSuchObjectInstance: | |
1182 return "One or more of the elements in the Referenced SOP " | |
1183 "Instance Sequence was not available"; | |
1184 | |
1185 case StorageCommitmentFailureReason_ResourceLimitation: | |
1186 return "The SCP does not currently have enough resources to " | |
1187 "store the requested SOP Instance(s)"; | |
1188 | |
1189 case StorageCommitmentFailureReason_ReferencedSOPClassNotSupported: | |
1190 return "Storage Commitment has been requested for a SOP Instance " | |
1191 "with a SOP Class that is not supported by the SCP"; | |
1192 | |
1193 case StorageCommitmentFailureReason_ClassInstanceConflict: | |
1194 return "The SOP Class of an element in the Referenced SOP Instance Sequence " | |
1195 "did not correspond to the SOP class registered for this SOP Instance at the SCP"; | |
1196 | |
1197 case StorageCommitmentFailureReason_DuplicateTransactionUID: | |
1198 return "The Transaction UID of the Storage Commitment Request is already in use"; | |
1199 | |
1200 default: | |
1201 return "Unknown failure reason"; | |
1202 } | |
1203 } | |
1204 | |
1205 | |
1171 Encoding StringToEncoding(const char* encoding) | 1206 Encoding StringToEncoding(const char* encoding) |
1172 { | 1207 { |
1173 std::string s(encoding); | 1208 std::string s(encoding); |
1174 Toolbox::ToUpperCase(s); | 1209 Toolbox::ToUpperCase(s); |
1175 | 1210 |