Mercurial > hg > orthanc
comparison OrthancServer/Search/DatabaseLookup.h @ 3163:cf91b6f22278
Fix issue #90 (C-Find shall match missing tags to null/empty string)
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 24 Jan 2019 18:04:55 +0100 |
parents | 2df061cf2fec |
children | cf8cbeb35f33 |
comparison
equal
deleted
inserted
replaced
3162:94a4f75cc746 | 3163:cf91b6f22278 |
---|---|
47 void AddDicomConstraintInternal(const DicomTag& tag, | 47 void AddDicomConstraintInternal(const DicomTag& tag, |
48 ValueRepresentation vr, | 48 ValueRepresentation vr, |
49 const std::string& dicomQuery, | 49 const std::string& dicomQuery, |
50 bool caseSensitive, | 50 bool caseSensitive, |
51 bool mandatoryTag); | 51 bool mandatoryTag); |
52 | |
53 void AddConstraint(DicomTagConstraint* constraint); // Takes ownership | |
54 | |
52 public: | 55 public: |
53 DatabaseLookup() | 56 DatabaseLookup() |
54 { | 57 { |
55 } | 58 } |
56 | 59 |
66 return constraints_.size(); | 69 return constraints_.size(); |
67 } | 70 } |
68 | 71 |
69 const DicomTagConstraint& GetConstraint(size_t index) const; | 72 const DicomTagConstraint& GetConstraint(size_t index) const; |
70 | 73 |
71 void AddConstraint(DicomTagConstraint* constraint); // Takes ownership | |
72 | |
73 bool IsMatch(const DicomMap& value) const; | 74 bool IsMatch(const DicomMap& value) const; |
74 | 75 |
75 bool IsMatch(DcmItem& item, | 76 bool IsMatch(DcmItem& item, |
76 Encoding encoding) const; | 77 Encoding encoding) const; |
77 | 78 |