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