comparison 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
comparison
equal deleted inserted replaced
5614:4640b7ae9a11 5615:a10978a5e65c
53 53
54 public: 54 public:
55 ResourceFinder(ResourceType level, 55 ResourceFinder(ResourceType level,
56 bool expand); 56 bool expand);
57 57
58 void SetOrthancId(ResourceType level,
59 const std::string& id)
60 {
61 request_.SetOrthancId(level, id);
62 }
63
58 void SetFormat(DicomToJsonFormat format) 64 void SetFormat(DicomToJsonFormat format)
59 { 65 {
60 format_ = format; 66 format_ = format;
61 } 67 }
62 68
75 81
76 void AddRequestedTags(const std::set<DicomTag>& tags); 82 void AddRequestedTags(const std::set<DicomTag>& tags);
77 83
78 void Execute(Json::Value& target, 84 void Execute(Json::Value& target,
79 ServerContext& context); 85 ServerContext& context);
86
87 bool ExecuteOneResource(Json::Value& target,
88 ServerContext& context);
80 }; 89 };
81 } 90 }