comparison OrthancServer/ServerIndex.cpp @ 739:696dbb4fd390

api uniformization
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 19 Mar 2014 09:58:20 +0100
parents 6a1dbba0cca7
children ec69658b031b
comparison
equal deleted inserted replaced
738:c60743fadd4e 739:696dbb4fd390
1236 1236
1237 return db_->LookupMetadata(target, id, type); 1237 return db_->LookupMetadata(target, id, type);
1238 } 1238 }
1239 1239
1240 1240
1241 bool ServerIndex::ListAvailableMetadata(std::list<MetadataType>& target, 1241 void ServerIndex::ListAvailableMetadata(std::list<MetadataType>& target,
1242 const std::string& publicId) 1242 const std::string& publicId)
1243 { 1243 {
1244 boost::mutex::scoped_lock lock(mutex_); 1244 boost::mutex::scoped_lock lock(mutex_);
1245 1245
1246 ResourceType rtype; 1246 ResourceType rtype;
1248 if (!db_->LookupResource(publicId, id, rtype)) 1248 if (!db_->LookupResource(publicId, id, rtype))
1249 { 1249 {
1250 throw OrthancException(ErrorCode_UnknownResource); 1250 throw OrthancException(ErrorCode_UnknownResource);
1251 } 1251 }
1252 1252
1253 return db_->ListAvailableMetadata(target, id); 1253 db_->ListAvailableMetadata(target, id);
1254 } 1254 }
1255 1255
1256 1256
1257 void ServerIndex::ListAvailableAttachments(std::list<FileContentType>& target, 1257 void ServerIndex::ListAvailableAttachments(std::list<FileContentType>& target,
1258 const std::string& publicId, 1258 const std::string& publicId,