Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
679:28e4b3ec8aff | 681:3bdb5db8e839 |
---|---|
1573 it = id.begin(); it != id.end(); ++it) | 1573 it = id.begin(); it != id.end(); ++it) |
1574 { | 1574 { |
1575 result.push_back(db_->GetPublicId(*it)); | 1575 result.push_back(db_->GetPublicId(*it)); |
1576 } | 1576 } |
1577 } | 1577 } |
1578 | |
1579 | |
1580 // TODO IS IT USEFUL??? | |
1581 void ServerIndex::LookupTagValue(std::set<std::string>& result, | |
1582 DicomTag tag, | |
1583 const std::string& value, | |
1584 ResourceType type) | |
1585 { | |
1586 std::list<std::string> lst; | |
1587 LookupTagValue(lst, tag, value, type); | |
1588 | |
1589 result.clear(); | |
1590 for (std::list<std::string>::const_iterator | |
1591 it = lst.begin(); it != lst.end(); it++) | |
1592 { | |
1593 result.insert(*it); | |
1594 } | |
1595 } | |
1596 | |
1597 | |
1598 // TODO IS IT USEFUL??? | |
1599 void ServerIndex::LookupTagValue(std::set<std::string>& result, | |
1600 DicomTag tag, | |
1601 const std::string& value) | |
1602 { | |
1603 std::list<std::string> lst; | |
1604 LookupTagValue(lst, tag, value); | |
1605 | |
1606 result.clear(); | |
1607 for (std::list<std::string>::const_iterator | |
1608 it = lst.begin(); it != lst.end(); it++) | |
1609 { | |
1610 result.insert(*it); | |
1611 } | |
1612 } | |
1613 | |
1614 | |
1615 // TODO IS IT USEFUL??? | |
1616 void ServerIndex::LookupTagValue(std::set<std::string>& result, | |
1617 const std::string& value) | |
1618 { | |
1619 std::list<std::string> lst; | |
1620 LookupTagValue(lst, value); | |
1621 | |
1622 result.clear(); | |
1623 for (std::list<std::string>::const_iterator | |
1624 it = lst.begin(); it != lst.end(); it++) | |
1625 { | |
1626 result.insert(*it); | |
1627 } | |
1628 } | |
1578 } | 1629 } |