Mercurial > hg > orthanc
comparison OrthancServer/Search/RangeConstraint.h @ 1751:fb569ee09a69 db-changes
LookupResource complete
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 27 Oct 2015 16:05:42 +0100 |
parents | 99f4a05f39fa |
children | 03b030680e3d |
comparison
equal
deleted
inserted
replaced
1750:55d52567bebb | 1751:fb569ee09a69 |
---|---|
41 private: | 41 private: |
42 std::string lower_; | 42 std::string lower_; |
43 std::string upper_; | 43 std::string upper_; |
44 bool isCaseSensitive_; | 44 bool isCaseSensitive_; |
45 | 45 |
46 RangeConstraint(const RangeConstraint& other) : | |
47 IFindConstraint(other.GetTag()), | |
48 lower_(other.lower_), | |
49 upper_(other.upper_), | |
50 isCaseSensitive_(other.isCaseSensitive_) | |
51 { | |
52 } | |
53 | |
46 public: | 54 public: |
47 RangeConstraint(const DicomTag& tag, | 55 RangeConstraint(const DicomTag& tag, |
48 const std::string& lower, | 56 const std::string& lower, |
49 const std::string& upper, | 57 const std::string& upper, |
50 bool isCaseSensitive); | 58 bool isCaseSensitive); |
51 | 59 |
60 virtual IFindConstraint* Clone() const | |
61 { | |
62 return new RangeConstraint(*this); | |
63 } | |
64 | |
52 virtual void Setup(LookupIdentifierQuery& lookup) const; | 65 virtual void Setup(LookupIdentifierQuery& lookup) const; |
53 | 66 |
54 virtual bool Match(const std::string& value) const; | 67 virtual bool Match(const std::string& value) const; |
55 }; | 68 }; |
56 } | 69 } |