diff OrthancServer/Search/Compatibility/CompatibilityDatabaseWrapper.h @ 3052:c7db469bbe8e db-changes

new class: Compatibility::DatabaseLookup
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 20 Dec 2018 16:58:52 +0100
parents d8a91acb7424
children 3638de45a08c
line wrap: on
line diff
--- a/OrthancServer/Search/Compatibility/CompatibilityDatabaseWrapper.h	Thu Dec 20 16:49:07 2018 +0100
+++ b/OrthancServer/Search/Compatibility/CompatibilityDatabaseWrapper.h	Thu Dec 20 16:58:52 2018 +0100
@@ -37,24 +37,27 @@
 
 namespace Orthanc
 {
-  /**
-   * This is a compatibility class that contains database primitives
-   * that were used in Orthanc <= 1.5.1, and that have been removed
-   * during the optimization of the database engine.
-   **/
-  class CompatibilityDatabaseWrapper : public IDatabaseWrapper
+  namespace Compatibility
   {
-  public:
-    virtual void LookupIdentifier(std::list<int64_t>& result,
-                                  ResourceType level,
-                                  const DicomTag& tag,
-                                  IdentifierConstraintType type,
-                                  const std::string& value) = 0;
+    /**
+     * This is a compatibility class that contains database primitives
+     * that were used in Orthanc <= 1.5.1, and that have been removed
+     * during the optimization of the database engine.
+     **/
+    class CompatibilityDatabaseWrapper : public IDatabaseWrapper
+    {
+    public:
+      virtual void LookupIdentifier(std::list<int64_t>& result,
+                                    ResourceType level,
+                                    const DicomTag& tag,
+                                    IdentifierConstraintType type,
+                                    const std::string& value) = 0;
  
-    virtual void LookupIdentifierRange(std::list<int64_t>& result,
-                                       ResourceType level,
-                                       const DicomTag& tag,
-                                       const std::string& start,
-                                       const std::string& end) = 0;
-  };
+      virtual void LookupIdentifierRange(std::list<int64_t>& result,
+                                         ResourceType level,
+                                         const DicomTag& tag,
+                                         const std::string& start,
+                                         const std::string& end) = 0;
+    };
+  }
 }