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