Mercurial > hg > orthanc
comparison OrthancServer/Search/ValueConstraint.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 |
---|---|
40 { | 40 { |
41 private: | 41 private: |
42 std::string value_; | 42 std::string value_; |
43 bool isCaseSensitive_; | 43 bool isCaseSensitive_; |
44 | 44 |
45 ValueConstraint(const ValueConstraint& other) : | |
46 IFindConstraint(other.GetTag()), | |
47 value_(other.value_), | |
48 isCaseSensitive_(other.isCaseSensitive_) | |
49 { | |
50 } | |
51 | |
45 public: | 52 public: |
46 ValueConstraint(const DicomTag& tag, | 53 ValueConstraint(const DicomTag& tag, |
47 const std::string& value, | 54 const std::string& value, |
48 bool isCaseSensitive); | 55 bool isCaseSensitive); |
56 | |
57 virtual IFindConstraint* Clone() const | |
58 { | |
59 return new ValueConstraint(*this); | |
60 } | |
49 | 61 |
50 virtual void Setup(LookupIdentifierQuery& lookup) const; | 62 virtual void Setup(LookupIdentifierQuery& lookup) const; |
51 | 63 |
52 virtual bool Match(const std::string& value) const; | 64 virtual bool Match(const std::string& value) const; |
53 }; | 65 }; |