Mercurial > hg > orthanc
comparison OrthancServer/Sources/Search/DatabaseLookup.h @ 5220:df39c7583a49 db-protobuf
preparing virtual methods for labels
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 03 Apr 2023 18:09:04 +0200 |
parents | 0ea402b4d901 |
children | a7d95f951f8a |
comparison
equal
deleted
inserted
replaced
5218:afa96af2eb5a | 5220:df39c7583a49 |
---|---|
30 { | 30 { |
31 class DatabaseLookup : public boost::noncopyable | 31 class DatabaseLookup : public boost::noncopyable |
32 { | 32 { |
33 private: | 33 private: |
34 std::vector<DicomTagConstraint*> constraints_; | 34 std::vector<DicomTagConstraint*> constraints_; |
35 std::set<std::string> withLabels_; | |
36 std::set<std::string> withoutLabels_; | |
35 | 37 |
36 void AddDicomConstraintInternal(const DicomTag& tag, | 38 void AddDicomConstraintInternal(const DicomTag& tag, |
37 ValueRepresentation vr, | 39 ValueRepresentation vr, |
38 const std::string& dicomQuery, | 40 const std::string& dicomQuery, |
39 bool caseSensitive, | 41 bool caseSensitive, |
90 std::string Format() const; | 92 std::string Format() const; |
91 | 93 |
92 bool HasTag(const DicomTag& tag) const; | 94 bool HasTag(const DicomTag& tag) const; |
93 | 95 |
94 void RemoveConstraint(const DicomTag& tag); | 96 void RemoveConstraint(const DicomTag& tag); |
97 | |
98 void AddWithLabel(const std::string& label); | |
99 | |
100 void AddWithoutLabel(const std::string& label); | |
101 | |
102 const std::set<std::string>& GetWithLabels() const | |
103 { | |
104 return withLabels_; | |
105 } | |
106 | |
107 const std::set<std::string>& GetWithoutLabels() const | |
108 { | |
109 return withoutLabels_; | |
110 } | |
95 }; | 111 }; |
96 } | 112 } |