Mercurial > hg > orthanc
diff OrthancServer/ServerIndex.cpp @ 681:3bdb5db8e839 query-retrieve
generalization of query/retrieve
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 24 Jan 2014 17:40:45 +0100 |
parents | 08eca5d86aad |
children | 67e6400fca03 |
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.cpp Fri Jan 24 15:35:39 2014 +0100 +++ b/OrthancServer/ServerIndex.cpp Fri Jan 24 17:40:45 2014 +0100 @@ -1575,4 +1575,55 @@ result.push_back(db_->GetPublicId(*it)); } } + + + // TODO IS IT USEFUL??? + void ServerIndex::LookupTagValue(std::set<std::string>& result, + DicomTag tag, + const std::string& value, + ResourceType type) + { + std::list<std::string> lst; + LookupTagValue(lst, tag, value, type); + + result.clear(); + for (std::list<std::string>::const_iterator + it = lst.begin(); it != lst.end(); it++) + { + result.insert(*it); + } + } + + + // TODO IS IT USEFUL??? + void ServerIndex::LookupTagValue(std::set<std::string>& result, + DicomTag tag, + const std::string& value) + { + std::list<std::string> lst; + LookupTagValue(lst, tag, value); + + result.clear(); + for (std::list<std::string>::const_iterator + it = lst.begin(); it != lst.end(); it++) + { + result.insert(*it); + } + } + + + // TODO IS IT USEFUL??? + void ServerIndex::LookupTagValue(std::set<std::string>& result, + const std::string& value) + { + std::list<std::string> lst; + LookupTagValue(lst, value); + + result.clear(); + for (std::list<std::string>::const_iterator + it = lst.begin(); it != lst.end(); it++) + { + result.insert(*it); + } + } }