comparison OrthancServer/Search/LookupResource.h @ 3021:2cbafb5d5a62

renamed LookupResource::IVisitor as ServerContext::ILookupVisitor
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 15 Dec 2018 16:29:50 +0100
parents af1530b45290
children 4e43e67f8ecf
comparison
equal deleted inserted replaced
3015:abe49ca61cd5 3021:2cbafb5d5a62
82 void ApplyLevel(SetOfResources& candidates, 82 void ApplyLevel(SetOfResources& candidates,
83 ResourceType level, 83 ResourceType level,
84 IDatabaseWrapper& database) const; 84 IDatabaseWrapper& database) const;
85 85
86 public: 86 public:
87 class IVisitor : public boost::noncopyable
88 {
89 public:
90 virtual ~IVisitor()
91 {
92 }
93
94 virtual bool IsDicomAsJsonNeeded() const = 0;
95
96 virtual void MarkAsComplete() = 0;
97
98 virtual void Visit(const std::string& publicId,
99 const std::string& instanceId,
100 const DicomMap& mainDicomTags,
101 const Json::Value* dicomAsJson) = 0;
102 };
103
104 LookupResource(ResourceType level); 87 LookupResource(ResourceType level);
105 88
106 ~LookupResource(); 89 ~LookupResource();
107 90
108 ResourceType GetLevel() const 91 ResourceType GetLevel() const