| 148 | } |
| 149 | |
| 150 | void ConfigObjectTargetProvider::FindTargets(const String& type, const std::function<void (const Value&)>& addTarget) const |
| 151 | { |
| 152 | Type::Ptr ptype = Type::GetByName(type); |
| 153 | auto *ctype = dynamic_cast<ConfigType *>(ptype.get()); |
| 154 | |
| 155 | if (ctype) { |
| 156 | for (const ConfigObject::Ptr& object : ctype->GetObjects()) { |
| 157 | addTarget(object); |
| 158 | } |
| 159 | } |
| 160 | } |
| 161 | |
| 162 | Value ConfigObjectTargetProvider::GetTargetByName(const String& type, const String& name) const |
| 163 | { |
no test coverage detected