Mercurial > hg > orthanc
comparison OrthancServer/Search/ValueConstraint.h @ 1756:03b030680e3d db-changes
refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 28 Oct 2015 12:14:06 +0100 |
parents | fb569ee09a69 |
children | af6840eb23ee |
comparison
equal
deleted
inserted
replaced
1755:39c37a994b2f | 1756:03b030680e3d |
---|---|
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) : | 45 ValueConstraint(const ValueConstraint& other) : |
46 IFindConstraint(other.GetTag()), | |
47 value_(other.value_), | 46 value_(other.value_), |
48 isCaseSensitive_(other.isCaseSensitive_) | 47 isCaseSensitive_(other.isCaseSensitive_) |
49 { | 48 { |
50 } | 49 } |
51 | 50 |
52 public: | 51 public: |
53 ValueConstraint(const DicomTag& tag, | 52 ValueConstraint(const std::string& value, |
54 const std::string& value, | |
55 bool isCaseSensitive); | 53 bool isCaseSensitive); |
56 | 54 |
57 virtual IFindConstraint* Clone() const | 55 virtual IFindConstraint* Clone() const |
58 { | 56 { |
59 return new ValueConstraint(*this); | 57 return new ValueConstraint(*this); |
60 } | 58 } |
61 | 59 |
62 virtual void Setup(LookupIdentifierQuery& lookup) const; | 60 virtual void Setup(LookupIdentifierQuery& lookup, |
61 const DicomTag& tag) const; | |
63 | 62 |
64 virtual bool Match(const std::string& value) const; | 63 virtual bool Match(const std::string& value) const; |
65 }; | 64 }; |
66 } | 65 } |