| 222 | } |
| 223 | |
| 224 | std::vector<ModuleResource> ModuleResource::GetChildResources() const |
| 225 | { |
| 226 | std::vector<ModuleResource> childResources; |
| 227 | |
| 228 | if (!IsValid() || !IsDir()) return childResources; |
| 229 | |
| 230 | if (d->childNodes.empty()) |
| 231 | { |
| 232 | d->resourceContainer->GetChildren(this->GetResourcePath(), true, |
| 233 | d->children, d->childNodes); |
| 234 | } |
| 235 | |
| 236 | for (std::vector<uint32_t>::const_iterator iter = d->childNodes.begin(), |
| 237 | iterEnd = d->childNodes.end(); iter != iterEnd; ++iter) |
| 238 | { |
| 239 | childResources.push_back(ModuleResource(static_cast<int>(*iter), *d->resourceContainer)); |
| 240 | } |
| 241 | return childResources; |
| 242 | } |
| 243 | |
| 244 | int ModuleResource::GetSize() const |
| 245 | { |
nothing calls this directly
no test coverage detected