comparison OrthancServer/Sources/OrthancWebDav.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 569d9ef165b1
children 70d2a97ca8cb 7053502fbf97
comparison
equal deleted inserted replaced
4795:22d5b611dea7 4796:94616af363ec
1311 instance->SetOrigin(DicomInstanceOrigin::FromWebDav()); 1311 instance->SetOrigin(DicomInstanceOrigin::FromWebDav());
1312 1312
1313 try 1313 try
1314 { 1314 {
1315 std::string publicId; 1315 std::string publicId;
1316 StoreStatus status = context_.Store(publicId, *instance, StoreInstanceMode_Default); 1316 ServerContext::StoreResult result = context_.Store(publicId, *instance, StoreInstanceMode_Default);
1317 if (status == StoreStatus_Success || 1317 if (result.GetStatus() == StoreStatus_Success ||
1318 status == StoreStatus_AlreadyStored) 1318 result.GetStatus() == StoreStatus_AlreadyStored)
1319 { 1319 {
1320 LOG(INFO) << "Successfully imported DICOM instance from WebDAV: " 1320 LOG(INFO) << "Successfully imported DICOM instance from WebDAV: "
1321 << path << " (Orthanc ID: " << publicId << ")"; 1321 << path << " (Orthanc ID: " << publicId << ")";
1322 success = true; 1322 success = true;
1323 } 1323 }