Mercurial > hg > orthanc
comparison OrthancServer/Search/SetOfResources.cpp @ 1750:55d52567bebb db-changes
LookupResource implemented
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 27 Oct 2015 12:45:50 +0100 |
parents | ca69082ab200 |
children | fb569ee09a69 |
comparison
equal
deleted
inserted
replaced
1749:99f4a05f39fa | 1750:55d52567bebb |
---|---|
128 { | 128 { |
129 result.push_back(database_.GetPublicId(*it)); | 129 result.push_back(database_.GetPublicId(*it)); |
130 } | 130 } |
131 } | 131 } |
132 } | 132 } |
133 | |
134 | |
135 void SetOfResources::Flatten(std::list<int64_t>& result) | |
136 { | |
137 result.clear(); | |
138 | |
139 if (resources_.get() == NULL) | |
140 { | |
141 // All the resources of this level are part of the filter | |
142 database_.GetAllInternalIds(result, level_); | |
143 } | |
144 else | |
145 { | |
146 for (Resources::const_iterator it = resources_->begin(); | |
147 it != resources_->end(); ++it) | |
148 { | |
149 result.push_back(*it); | |
150 } | |
151 } | |
152 } | |
133 } | 153 } |