diff OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp @ 5583:74cc31c8db2b find-refactoring

removed FindResponse::Item::responseContent_
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 27 Apr 2024 22:15:37 +0200
parents 17da828f9443
children fc3914c07dd3
line wrap: on
line diff
--- a/OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp	Sat Apr 27 21:42:32 2024 +0200
+++ b/OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp	Sat Apr 27 22:15:37 2024 +0200
@@ -3872,22 +3872,22 @@
     fileSize_(0),
     indexInSeries_(0)
   {
-    if (item.HasResponseContent(FindRequest::ResponseContent_MainDicomTags))
+    if (request.HasResponseContent(FindRequest::ResponseContent_MainDicomTags))
     {
       tags_.Assign(item.GetDicomMap());
     }
 
-    if (item.HasResponseContent(FindRequest::ResponseContent_Children))
+    if (request.HasResponseContent(FindRequest::ResponseContent_Children))
     {
       childrenIds_ = item.GetChildren();
     }
 
-    if (item.HasResponseContent(FindRequest::ResponseContent_Parent))
+    if (request.HasResponseContent(FindRequest::ResponseContent_Parent))
     {
       parentId_ = item.GetIdentifiers().GetLevel(GetParentResourceType(request.GetLevel()));
     }
 
-    if (item.HasResponseContent(FindRequest::ResponseContent_Metadata))
+    if (request.HasResponseContent(FindRequest::ResponseContent_Metadata))
     {
       metadata_ = item.GetMetadata();
       std::string value;
@@ -3923,12 +3923,12 @@
       }
     }
 
-    if (item.HasResponseContent(FindRequest::ResponseContent_Labels))
+    if (request.HasResponseContent(FindRequest::ResponseContent_Labels))
     {
       labels_ = item.GetLabels();
     }
 
-    if (item.HasResponseContent(FindRequest::ResponseContent_Attachments))
+    if (request.HasResponseContent(FindRequest::ResponseContent_Attachments))
     {
       FileInfo attachment;
       if (item.LookupAttachment(attachment, FileContentType_Dicom))
@@ -3938,7 +3938,7 @@
       }
     }
 
-    if (item.HasResponseContent(FindRequest::ResponseContent_ChildrenMetadata))
+    if (request.HasResponseContent(FindRequest::ResponseContent_ChildrenMetadata))
     {
       // TODO-FIND: the status_ is normally obtained from transaction.GetSeriesStatus(internalId, i)
       // but, that's an heavy operation for something that is rarely used -> we should have dedicated SQL code