diff OrthancServer/ServerIndex.cpp @ 1718:2b812969e136 db-changes

getting rid of an IDatabaseWrapper::LookupIdentifier flavor
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 20 Oct 2015 10:11:22 +0200
parents 3926e6317a43
children 88b74d8512be
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.cpp	Mon Oct 19 17:45:34 2015 +0200
+++ b/OrthancServer/ServerIndex.cpp	Tue Oct 20 10:11:22 2015 +0200
@@ -1930,7 +1930,8 @@
   }
 
 
-  void ServerIndex::LookupIdentifier(std::list< std::pair<ResourceType, std::string> >& result,
+  void ServerIndex::LookupIdentifier(LookupResults& result,
+                                     const DicomTag& tag,
                                      const std::string& value)
   {
     result.clear();
@@ -1938,7 +1939,7 @@
     boost::mutex::scoped_lock lock(mutex_);
 
     std::list<int64_t> id;
-    db_.LookupIdentifier(id, value);
+    db_.LookupIdentifier(id, tag, value);
 
     for (std::list<int64_t>::const_iterator 
            it = id.begin(); it != id.end(); ++it)