Mercurial > hg > orthanc
comparison OrthancServer/Sources/ServerJobs/ResourceModificationJob.cpp @ 4796:94616af363ec filter-store-instance
added ReceivedCStoreInstanceFilter lua callback + OrthancPluginRegisterIncomingCStoreInstanceFilter in sdk
author | Alain Mazy <am@osimis.io> |
---|---|
date | Fri, 01 Oct 2021 18:36:45 +0200 |
parents | 45bce660ce3a |
children | 70d2a97ca8cb 7053502fbf97 |
comparison
equal
deleted
inserted
replaced
4795:22d5b611dea7 | 4796:94616af363ec |
---|---|
288 /** | 288 /** |
289 * Store the resulting DICOM instance into the Orthanc store. | 289 * Store the resulting DICOM instance into the Orthanc store. |
290 **/ | 290 **/ |
291 | 291 |
292 std::string modifiedInstance; | 292 std::string modifiedInstance; |
293 if (GetContext().Store(modifiedInstance, *toStore, | 293 ServerContext::StoreResult result = GetContext().Store(modifiedInstance, *toStore, StoreInstanceMode_Default); |
294 StoreInstanceMode_Default) != StoreStatus_Success) | 294 if (result.GetStatus() != StoreStatus_Success) |
295 { | 295 { |
296 throw OrthancException(ErrorCode_CannotStoreInstance, | 296 throw OrthancException(ErrorCode_CannotStoreInstance, |
297 "Error while storing a modified instance " + instance); | 297 "Error while storing a modified instance " + instance); |
298 } | 298 } |
299 | 299 |