diff OrthancServer/ServerIndex.cpp @ 1555:d6a93e12b1c1

Creation of DICOM files with encapsulated PDF
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 20 Aug 2015 15:18:13 +0200
parents 0586ed8897f1
children de1413733c97
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.cpp	Thu Aug 20 11:56:42 2015 +0200
+++ b/OrthancServer/ServerIndex.cpp	Thu Aug 20 15:18:13 2015 +0200
@@ -2097,4 +2097,15 @@
       return true;
     }    
   }
+
+
+  bool ServerIndex::LookupResourceType(ResourceType& type,
+                                       const std::string& publicId)
+  {
+    boost::mutex::scoped_lock lock(mutex_);
+
+    int64_t id;
+    return db_.LookupResource(id, type, publicId);
+  }
+
 }