| 517 | return nullptr; |
| 518 | } |
| 519 | |
| 520 | TypeID const typeID( typeAttr.as_string() ); |
| 521 | auto const pTypeInfo = typeRegistry.GetTypeInfo( typeID ); |
| 522 | if ( pTypeInfo == nullptr ) |
| 523 | { |
| 524 | log.LogError( "Unknown type encountered: %s", typeID.c_str() ); |
| 525 | return nullptr; |
| 526 | } |
| 527 | |
| 528 | IReflectedType* pTypeInstance = pTypeInfo->CreateType(); |
| 529 | |
| 530 | if ( !ReadType( typeRegistry, log, node, pTypeInstance ) ) |
| 531 | { |
| 532 | EE::Delete( pTypeInstance ); |
| 533 | return nullptr; |
| 534 | } |
| 535 | |
| 536 | return pTypeInstance; |
| 537 | } |
| 538 |
no test coverage detected