comparison OrthancServer/ServerIndex.cpp @ 3036:8fd203510d8b db-changes

moving LookupIdentifierQuery to the graveyard
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 19 Dec 2018 16:27:07 +0100
parents 54e422fe31ce
children ce272138f15e
comparison
equal deleted inserted replaced
3034:54e422fe31ce 3036:8fd203510d8b
2139 DicomTagConstraint c(tag, ConstraintType_Equal, value, true, true); 2139 DicomTagConstraint c(tag, ConstraintType_Equal, value, true, true);
2140 2140
2141 std::vector<DatabaseConstraint> query; 2141 std::vector<DatabaseConstraint> query;
2142 query.push_back(DatabaseConstraint(c, level, DicomTagType_Identifier)); 2142 query.push_back(DatabaseConstraint(c, level, DicomTagType_Identifier));
2143 2143
2144 std::vector<std::string> instancesId;
2145
2146 { 2144 {
2147 boost::mutex::scoped_lock lock(mutex_); 2145 boost::mutex::scoped_lock lock(mutex_);
2148 db_.ApplyLookupResources(result, instancesId, query, level, 0); 2146 db_.ApplyLookupResources(result, NULL, query, level, 0);
2149 } 2147 }
2150 } 2148 }
2151 2149
2152 2150
2153 StoreStatus ServerIndex::AddAttachment(const FileInfo& attachment, 2151 StoreStatus ServerIndex::AddAttachment(const FileInfo& attachment,
2563 } 2561 }
2564 } 2562 }
2565 2563
2566 2564
2567 void ServerIndex::ApplyLookupResources(std::vector<std::string>& resourcesId, 2565 void ServerIndex::ApplyLookupResources(std::vector<std::string>& resourcesId,
2568 std::vector<std::string>& instancesId, 2566 std::vector<std::string>* instancesId,
2569 const DatabaseLookup& lookup, 2567 const DatabaseLookup& lookup,
2570 ResourceType queryLevel, 2568 ResourceType queryLevel,
2571 size_t limit) 2569 size_t limit)
2572 { 2570 {
2573 std::vector<DatabaseConstraint> normalized; 2571 std::vector<DatabaseConstraint> normalized;