diff OrthancServer/Sources/ResourceFinder.h @ 5615:a10978a5e65c find-refactoring

expansion of single resources using ResourceFinder
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 09 May 2024 12:24:29 +0200
parents 4690a0d2b01e
children 8905ffa45fc2
line wrap: on
line diff
--- a/OrthancServer/Sources/ResourceFinder.h	Thu May 09 11:59:56 2024 +0200
+++ b/OrthancServer/Sources/ResourceFinder.h	Thu May 09 12:24:29 2024 +0200
@@ -55,6 +55,12 @@
     ResourceFinder(ResourceType level,
                    bool expand);
 
+    void SetOrthancId(ResourceType level,
+                      const std::string& id)
+    {
+      request_.SetOrthancId(level, id);
+    }
+
     void SetFormat(DicomToJsonFormat format)
     {
       format_ = format;
@@ -77,5 +83,8 @@
 
     void Execute(Json::Value& target,
                  ServerContext& context);
+
+    bool ExecuteOneResource(Json::Value& target,
+                            ServerContext& context);
   };
 }