diff OrthancServer/Search/ValueConstraint.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
line wrap: on
line diff
--- a/OrthancServer/Search/ValueConstraint.h	Wed Oct 28 12:02:15 2015 +0100
+++ b/OrthancServer/Search/ValueConstraint.h	Wed Oct 28 12:14:06 2015 +0100
@@ -43,15 +43,13 @@
     bool         isCaseSensitive_;
 
     ValueConstraint(const ValueConstraint& other) : 
-      IFindConstraint(other.GetTag()),
       value_(other.value_),
       isCaseSensitive_(other.isCaseSensitive_)
     {
     }
 
   public:
-    ValueConstraint(const DicomTag& tag, 
-                    const std::string& value,
+    ValueConstraint(const std::string& value,
                     bool isCaseSensitive);
 
     virtual IFindConstraint* Clone() const
@@ -59,7 +57,8 @@
       return new ValueConstraint(*this);
     }
 
-    virtual void Setup(LookupIdentifierQuery& lookup) const;
+    virtual void Setup(LookupIdentifierQuery& lookup,
+                       const DicomTag& tag) const;
 
     virtual bool Match(const std::string& value) const;
   };