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