diff OrthancServer/Search/ValueConstraint.cpp @ 1756:03b030680e3d db-changes

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 28 Oct 2015 12:14:06 +0100
parents 3a4f7dc00f49
children b1291df2f780
line wrap: on
line diff
--- a/OrthancServer/Search/ValueConstraint.cpp	Wed Oct 28 12:02:15 2015 +0100
+++ b/OrthancServer/Search/ValueConstraint.cpp	Wed Oct 28 12:14:06 2015 +0100
@@ -39,10 +39,8 @@
 
 namespace Orthanc
 {
-  ValueConstraint::ValueConstraint(const DicomTag& tag, 
-                                   const std::string& value,
+  ValueConstraint::ValueConstraint(const std::string& value,
                                    bool isCaseSensitive) : 
-    IFindConstraint(tag),
     value_(value),
     isCaseSensitive_(isCaseSensitive)
   {
@@ -53,9 +51,10 @@
   }
 
 
-  void ValueConstraint::Setup(LookupIdentifierQuery& lookup) const
+  void ValueConstraint::Setup(LookupIdentifierQuery& lookup,
+                              const DicomTag& tag) const
   {
-    lookup.AddConstraint(GetTag(), IdentifierConstraintType_Equal, value_);
+    lookup.AddConstraint(tag, IdentifierConstraintType_Equal, value_);
   }
 
   bool ValueConstraint::Match(const std::string& value) const