Mercurial > hg > orthanc
comparison OrthancServer/ServerIndex.cpp @ 1352:382439943749
ResourceFinder
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 11 May 2015 17:25:53 +0200 |
parents | 77e129ba64e4 |
children | 3dd494f201a1 |
comparison
equal
deleted
inserted
replaced
1351:fa09aa513fd4 | 1352:382439943749 |
---|---|
2053 { | 2053 { |
2054 return defaultValue; | 2054 return defaultValue; |
2055 } | 2055 } |
2056 } | 2056 } |
2057 | 2057 |
2058 | |
2059 bool ServerIndex::GetMainDicomTags(DicomMap& result, | |
2060 const std::string& publicId, | |
2061 ResourceType expectedType) | |
2062 { | |
2063 result.Clear(); | |
2064 | |
2065 boost::mutex::scoped_lock lock(mutex_); | |
2066 | |
2067 // Lookup for the requested resource | |
2068 int64_t id; | |
2069 ResourceType type; | |
2070 if (!db_.LookupResource(id, type, publicId) || | |
2071 type != expectedType) | |
2072 { | |
2073 return false; | |
2074 } | |
2075 else | |
2076 { | |
2077 db_.GetMainDicomTags(result, id); | |
2078 return true; | |
2079 } | |
2080 } | |
2058 } | 2081 } |