Mercurial > hg > orthanc
comparison Plugins/Engine/OrthancPluginDatabase.cpp @ 1718:2b812969e136 db-changes
getting rid of an IDatabaseWrapper::LookupIdentifier flavor
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 20 Oct 2015 10:11:22 +0200 |
parents | 4db9200c7f46 |
children | 1ae29c5e52fb |
comparison
equal
deleted
inserted
replaced
1717:3926e6317a43 | 1718:2b812969e136 |
---|---|
609 | 609 |
610 ForwardAnswers(target); | 610 ForwardAnswers(target); |
611 } | 611 } |
612 | 612 |
613 | 613 |
614 void OrthancPluginDatabase::LookupIdentifier(std::list<int64_t>& target, | |
615 const std::string& value) | |
616 { | |
617 ResetAnswers(); | |
618 CheckSuccess(backend_.lookupIdentifier2(GetContext(), payload_, value.c_str())); | |
619 ForwardAnswers(target); | |
620 } | |
621 | |
622 | |
623 bool OrthancPluginDatabase::LookupMetadata(std::string& target, | 614 bool OrthancPluginDatabase::LookupMetadata(std::string& target, |
624 int64_t id, | 615 int64_t id, |
625 MetadataType type) | 616 MetadataType type) |
626 { | 617 { |
627 ResetAnswers(); | 618 ResetAnswers(); |