diff OrthancServer/Search/RangeConstraint.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
line wrap: on
line diff
--- a/OrthancServer/Search/RangeConstraint.h	Tue Oct 27 12:45:50 2015 +0100
+++ b/OrthancServer/Search/RangeConstraint.h	Tue Oct 27 16:05:42 2015 +0100
@@ -43,12 +43,25 @@
     std::string  upper_;
     bool         isCaseSensitive_;
 
+    RangeConstraint(const RangeConstraint& other) : 
+      IFindConstraint(other.GetTag()),
+      lower_(other.lower_),
+      upper_(other.upper_),
+      isCaseSensitive_(other.isCaseSensitive_)
+    {
+    }
+
   public:
     RangeConstraint(const DicomTag& tag, 
                     const std::string& lower,
                     const std::string& upper,
                     bool isCaseSensitive);
 
+    virtual IFindConstraint* Clone() const
+    {
+      return new RangeConstraint(*this);
+    }
+
     virtual void Setup(LookupIdentifierQuery& lookup) const;
 
     virtual bool Match(const std::string& value) const;