diff OrthancServer/Search/DicomTagConstraint.cpp @ 3027:fd587cf51a89 db-changes

cont
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 18 Dec 2018 12:50:27 +0100
parents 039a9d262d64
children ea653ec47f31
line wrap: on
line diff
--- a/OrthancServer/Search/DicomTagConstraint.cpp	Mon Dec 17 17:05:28 2018 +0100
+++ b/OrthancServer/Search/DicomTagConstraint.cpp	Tue Dec 18 12:50:27 2018 +0100
@@ -100,6 +100,7 @@
                                          bool caseSensitive,
                                          bool mandatory) :
     tag_(tag),
+    tagType_(DicomTagType_Generic),
     constraintType_(type),
     caseSensitive_(caseSensitive),
     mandatory_(mandatory)
@@ -130,6 +131,7 @@
                                          bool caseSensitive,
                                          bool mandatory) :
     tag_(tag),
+    tagType_(DicomTagType_Generic),
     constraintType_(type),
     caseSensitive_(caseSensitive),
     mandatory_(mandatory)
@@ -141,6 +143,20 @@
   }
 
 
+  DicomTagConstraint* DicomTagConstraint::Clone() const
+  {
+    std::auto_ptr<DicomTagConstraint> clone(new DicomTagConstraint);
+    
+    clone->tag_ = tag_;
+    clone->constraintType_ = constraintType_;
+    clone->values_ = values_;
+    clone->caseSensitive_ = caseSensitive_;
+    clone->mandatory_ = mandatory_;
+
+    return clone.release();
+  }
+  
+
   void DicomTagConstraint::AddValue(const std::string& value)
   {
     if (constraintType_ != ConstraintType_List)