Mercurial > hg > orthanc
comparison OrthancServer/OrthancRestApi/OrthancRestResources.cpp @ 1162:1ea4094d077c db-changes
refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 17 Sep 2014 13:25:37 +0200 |
parents | 200fcac0deb4 |
children | 059391d3f8df |
comparison
equal
deleted
inserted
replaced
1161:82cbf1480aac | 1162:1ea4094d077c |
---|---|
792 typedef std::list< std::pair<ResourceType, std::string> > Resources; | 792 typedef std::list< std::pair<ResourceType, std::string> > Resources; |
793 | 793 |
794 std::string tag = call.GetPostBody(); | 794 std::string tag = call.GetPostBody(); |
795 Resources resources; | 795 Resources resources; |
796 | 796 |
797 OrthancRestApi::GetIndex(call).LookupTagValue(resources, tag); | 797 OrthancRestApi::GetIndex(call).LookupIdentifier(resources, tag); |
798 | 798 |
799 Json::Value result = Json::arrayValue; | 799 Json::Value result = Json::arrayValue; |
800 | 800 |
801 for (Resources::const_iterator it = resources.begin(); | 801 for (Resources::const_iterator it = resources.begin(); |
802 it != resources.end(); it++) | 802 it != resources.end(); it++) |