Mercurial > hg > orthanc
comparison Plugins/Engine/OrthancPlugins.cpp @ 3034:54e422fe31ce db-changes
moving LookupResource to graveyard
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 19 Dec 2018 14:20:11 +0100 |
parents | db8f360fcb41 |
children | ce272138f15e |
comparison
equal
deleted
inserted
replaced
3033:5da6d1063d8f | 3034:54e422fe31ce |
---|---|
1642 | 1642 |
1643 default: | 1643 default: |
1644 throw OrthancException(ErrorCode_InternalError); | 1644 throw OrthancException(ErrorCode_InternalError); |
1645 } | 1645 } |
1646 | 1646 |
1647 std::list<std::string> result; | 1647 std::vector<std::string> result; |
1648 | 1648 |
1649 { | 1649 { |
1650 PImpl::ServerContextLock lock(*pimpl_); | 1650 PImpl::ServerContextLock lock(*pimpl_); |
1651 lock.GetContext().GetIndex().LookupIdentifierExact(result, level, tag, p.argument); | 1651 lock.GetContext().GetIndex().LookupIdentifierExact(result, level, tag, p.argument); |
1652 } | 1652 } |
1653 | 1653 |
1654 if (result.size() == 1) | 1654 if (result.size() == 1) |
1655 { | 1655 { |
1656 *p.result = CopyString(result.front()); | 1656 *p.result = CopyString(result[0]); |
1657 } | 1657 } |
1658 else | 1658 else |
1659 { | 1659 { |
1660 throw OrthancException(ErrorCode_UnknownResource); | 1660 throw OrthancException(ErrorCode_UnknownResource); |
1661 } | 1661 } |