diff 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
line wrap: on
line diff
--- a/OrthancServer/Search/ListConstraint.h	Tue Oct 27 12:45:50 2015 +0100
+++ b/OrthancServer/Search/ListConstraint.h	Tue Oct 27 16:05:42 2015 +0100
@@ -44,6 +44,13 @@
     std::set<std::string>  allowedValues_;
     bool                   isCaseSensitive_;
 
+    ListConstraint(const ListConstraint& other) : 
+      IFindConstraint(other.GetTag()),
+      allowedValues_(other.allowedValues_),
+      isCaseSensitive_(other.isCaseSensitive_)
+    {
+    }
+
   public:
     ListConstraint(const DicomTag& tag, 
                    bool isCaseSensitive) : 
@@ -54,6 +61,11 @@
 
     void AddAllowedValue(const std::string& value);
 
+    virtual IFindConstraint* Clone() const
+    {
+      return new ListConstraint(*this);
+    }
+
     virtual void Setup(LookupIdentifierQuery& lookup) const;
 
     virtual bool Match(const std::string& value) const;