diff OrthancServer/Search/DicomTagConstraint.h @ 3073:0e9d1731b1b0 db-changes

refactoring to reuse DatabaseConstraint in separate projects
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 02 Jan 2019 13:44:18 +0100
parents 2df061cf2fec
children 94f4a18a79cc
line wrap: on
line diff
--- a/OrthancServer/Search/DicomTagConstraint.h	Wed Jan 02 11:47:58 2019 +0100
+++ b/OrthancServer/Search/DicomTagConstraint.h	Wed Jan 02 13:44:18 2019 +0100
@@ -35,13 +35,12 @@
 
 #include "../ServerEnumerations.h"
 #include "../../Core/DicomFormat/DicomMap.h"
+#include "DatabaseConstraint.h"
 
 #include <boost/shared_ptr.hpp>
 
 namespace Orthanc
 {
-  class DatabaseConstraint;
-  
   class DicomTagConstraint : public boost::noncopyable
   {
   private:
@@ -112,5 +111,8 @@
     bool IsMatch(const DicomMap& value);
 
     std::string Format() const;
+
+    DatabaseConstraint ConvertToDatabaseConstraint(ResourceType level,
+                                                   DicomTagType tagType) const;
   };
 }