diff OrthancServer/LookupIdentifierQuery.h @ 1746:d143db00a794 db-changes

SetOfResources
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 26 Oct 2015 16:04:58 +0100
parents 38dda23c7d7d
children
line wrap: on
line diff
--- a/OrthancServer/LookupIdentifierQuery.h	Mon Oct 26 13:47:50 2015 +0100
+++ b/OrthancServer/LookupIdentifierQuery.h	Mon Oct 26 16:04:58 2015 +0100
@@ -54,14 +54,12 @@
    * corresponds to "%" (resp. "_") in primitive LIKE of SQL. The
    * values "%", "_", "\" should in the user request should
    * respectively be escaped as "\%", "\_" and "\\".
-   * 
+   *
    * This matching must be case sensitive: The special case of PN VR
    * is taken into consideration by normalizing the query string in
    * method "NormalizeIdentifier()".
    **/
 
-
-
   class LookupIdentifierQuery : public boost::noncopyable
   {
   private:
@@ -103,7 +101,12 @@
                        IdentifierConstraintType type,
                        const std::string& value);
 
-    size_t GetSize()
+    ResourceType GetLevel() const
+    {
+      return level_;
+    }
+
+    size_t GetSize() const
     {
       return constraints_.size();
     }
@@ -118,6 +121,9 @@
                                  int64_t resource,
                                  ResourceType level,
                                  const DicomMap& map);
-    
+
+    // The database must be locked
+    void Apply(std::list<std::string>& result,
+               IDatabaseWrapper& database);
   };
 }