Mercurial > hg > orthanc
comparison OrthancServer/Search/Compatibility/SetOfResources.cpp @ 3084:195ba4cbac3f db-changes
reorganization
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 04 Jan 2019 16:42:55 +0100 |
parents | ce272138f15e |
children | c829758b9ca0 |
comparison
equal
deleted
inserted
replaced
3083:683d572424b6 | 3084:195ba4cbac3f |
---|---|
136 } | 136 } |
137 } | 137 } |
138 } | 138 } |
139 | 139 |
140 | 140 |
141 void SetOfResources::Flatten(std::list<int64_t>& result) | 141 void SetOfResources::Flatten(CompatibilityDatabaseWrapper& compatibility, |
142 std::list<int64_t>& result) | |
142 { | 143 { |
143 result.clear(); | 144 result.clear(); |
144 | 145 |
145 if (resources_.get() == NULL) | 146 if (resources_.get() == NULL) |
146 { | 147 { |
147 // All the resources of this level are part of the filter | 148 // All the resources of this level are part of the filter |
148 database_.GetAllInternalIds(result, level_); | 149 compatibility.GetAllInternalIds(result, level_); |
149 } | 150 } |
150 else | 151 else |
151 { | 152 { |
152 for (Resources::const_iterator it = resources_->begin(); | 153 for (Resources::const_iterator it = resources_->begin(); |
153 it != resources_->end(); ++it) | 154 it != resources_->end(); ++it) |