Mercurial > hg > orthanc
comparison OrthancServer/ServerIndex.cpp @ 1721:3bcb01028107 db-changes
removed another flavor of ServerIndex::LookupIdentifier
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 20 Oct 2015 10:39:21 +0200 |
parents | 88b74d8512be |
children | a7c05bbfaf6a |
comparison
equal
deleted
inserted
replaced
1720:88b74d8512be | 1721:3bcb01028107 |
---|---|
1909 } | 1909 } |
1910 } | 1910 } |
1911 } | 1911 } |
1912 | 1912 |
1913 | 1913 |
1914 void ServerIndex::LookupIdentifier(std::list<std::string>& result, | |
1915 const DicomTag& tag, | |
1916 const std::string& value) | |
1917 { | |
1918 result.clear(); | |
1919 | |
1920 boost::mutex::scoped_lock lock(mutex_); | |
1921 | |
1922 std::list<int64_t> id; | |
1923 db_.LookupIdentifier(id, tag, value); | |
1924 | |
1925 for (std::list<int64_t>::const_iterator | |
1926 it = id.begin(); it != id.end(); ++it) | |
1927 { | |
1928 result.push_back(db_.GetPublicId(*it)); | |
1929 } | |
1930 } | |
1931 | |
1932 | |
1933 StoreStatus ServerIndex::AddAttachment(const FileInfo& attachment, | 1914 StoreStatus ServerIndex::AddAttachment(const FileInfo& attachment, |
1934 const std::string& publicId) | 1915 const std::string& publicId) |
1935 { | 1916 { |
1936 boost::mutex::scoped_lock lock(mutex_); | 1917 boost::mutex::scoped_lock lock(mutex_); |
1937 | 1918 |