diff OrthancServer/Search/DatabaseConstraint.h @ 3074:495c5edce708 db-changes

new extension for database plugin SDK: lookupResources
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 02 Jan 2019 15:50:44 +0100
parents 0e9d1731b1b0
children aae1d6d31fef
line wrap: on
line diff
--- a/OrthancServer/Search/DatabaseConstraint.h	Wed Jan 02 13:44:18 2019 +0100
+++ b/OrthancServer/Search/DatabaseConstraint.h	Wed Jan 02 15:50:44 2019 +0100
@@ -36,6 +36,10 @@
 #include "../../Core/DicomFormat/DicomMap.h"
 #include "../ServerEnumerations.h"
 
+#if ORTHANC_ENABLE_PLUGINS == 1
+#  include "../../Plugins/Include/orthanc/OrthancCDatabasePlugin.h"
+#endif
+
 namespace Orthanc
 {
   // This class is also used by the "orthanc-databases" project
@@ -58,6 +62,10 @@
                        const std::vector<std::string>& values,
                        bool caseSensitive,
                        bool mandatory);
+
+#if ORTHANC_ENABLE_PLUGINS == 1
+    DatabaseConstraint(const OrthancPluginDatabaseConstraint& constraint);
+#endif
     
     ResourceType GetLevel() const
     {
@@ -99,5 +107,10 @@
     }
 
     bool IsMatch(const DicomMap& dicom) const;
+
+#if ORTHANC_ENABLE_PLUGINS == 1
+    void EncodeForPlugins(OrthancPluginDatabaseConstraint& constraint,
+                          std::vector<const char*>& tmpValues) const;
+#endif    
   };
 }