| 446 | } |
| 447 | |
| 448 | Array::Ptr ScriptUtils::GetTemplates(const Type::Ptr& type) |
| 449 | { |
| 450 | if (!type) |
| 451 | BOOST_THROW_EXCEPTION(std::invalid_argument("Invalid type: Must not be null")); |
| 452 | |
| 453 | ArrayData result; |
| 454 | |
| 455 | for (const ConfigItem::Ptr& item : ConfigItem::GetItems(type)) { |
| 456 | if (item->IsAbstract()) |
| 457 | result.push_back(GetTargetForTemplate(item)); |
| 458 | } |
| 459 | |
| 460 | return new Array(std::move(result)); |
| 461 | } |
| 462 | |
| 463 | ConfigObject::Ptr ScriptUtils::GetObject(const Value& vtype, const String& name) |
| 464 | { |
nothing calls this directly
no test coverage detected