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