Mercurial > hg > orthanc
comparison OrthancServer/ServerIndex.cpp @ 1354:3dd494f201a1
ResourceFinder
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 13 May 2015 12:17:35 +0200 |
parents | 382439943749 |
children | 216db29c5aa9 |
comparison
equal
deleted
inserted
replaced
1353:d7da97e21161 | 1354:3dd494f201a1 |
---|---|
1073 } | 1073 } |
1074 } | 1074 } |
1075 | 1075 |
1076 | 1076 |
1077 | 1077 |
1078 void ServerIndex::GetAllUuids(Json::Value& target, | 1078 void ServerIndex::GetAllUuids(std::list<std::string>& target, |
1079 ResourceType resourceType) | 1079 ResourceType resourceType) |
1080 { | 1080 { |
1081 std::list<std::string> lst; | 1081 std::list<std::string> lst; |
1082 | 1082 |
1083 { | 1083 { |
1084 boost::mutex::scoped_lock lock(mutex_); | 1084 boost::mutex::scoped_lock lock(mutex_); |
1085 db_.GetAllPublicIds(lst, resourceType); | 1085 db_.GetAllPublicIds(lst, resourceType); |
1086 } | 1086 } |
1087 | 1087 |
1088 target = Json::arrayValue; | 1088 target.clear(); |
1089 for (std::list<std::string>::const_iterator | 1089 for (std::list<std::string>::const_iterator |
1090 it = lst.begin(); it != lst.end(); ++it) | 1090 it = lst.begin(); it != lst.end(); ++it) |
1091 { | 1091 { |
1092 target.append(*it); | 1092 target.push_back(*it); |
1093 } | 1093 } |
1094 } | 1094 } |
1095 | 1095 |
1096 | 1096 |
1097 template <typename T> | 1097 template <typename T> |