Mercurial > hg > orthanc
comparison OrthancServer/ServerIndex.cpp @ 1720:88b74d8512be db-changes
removed unused flavor of ServerIndex::LookupIdentifier
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 20 Oct 2015 10:24:10 +0200 |
parents | 2b812969e136 |
children | 3bcb01028107 |
comparison
equal
deleted
inserted
replaced
1719:3b1f7e706d38 | 1720:88b74d8512be |
---|---|
1928 result.push_back(db_.GetPublicId(*it)); | 1928 result.push_back(db_.GetPublicId(*it)); |
1929 } | 1929 } |
1930 } | 1930 } |
1931 | 1931 |
1932 | 1932 |
1933 void ServerIndex::LookupIdentifier(LookupResults& result, | |
1934 const DicomTag& tag, | |
1935 const std::string& value) | |
1936 { | |
1937 result.clear(); | |
1938 | |
1939 boost::mutex::scoped_lock lock(mutex_); | |
1940 | |
1941 std::list<int64_t> id; | |
1942 db_.LookupIdentifier(id, tag, value); | |
1943 | |
1944 for (std::list<int64_t>::const_iterator | |
1945 it = id.begin(); it != id.end(); ++it) | |
1946 { | |
1947 result.push_back(std::make_pair(db_.GetResourceType(*it), | |
1948 db_.GetPublicId(*it))); | |
1949 } | |
1950 } | |
1951 | |
1952 | |
1953 StoreStatus ServerIndex::AddAttachment(const FileInfo& attachment, | 1933 StoreStatus ServerIndex::AddAttachment(const FileInfo& attachment, |
1954 const std::string& publicId) | 1934 const std::string& publicId) |
1955 { | 1935 { |
1956 boost::mutex::scoped_lock lock(mutex_); | 1936 boost::mutex::scoped_lock lock(mutex_); |
1957 | 1937 |