NAP
Public Member Functions | List of all members
IObjectCreator Class Referenceabstract

#include <rtti/factory.h>

Public Member Functions

virtual ~IObjectCreator ()=default
 
virtual Objectcreate ()=0
 
virtual rtti::TypeInfo getTypeToCreate () const =0
 

Description

Derive from this object to apply custom constructor arguments to resources. The system uses this object to create a new resource instead of invoking the default constructor after serialization This allows for the implementation of custom construction behavior of resources after serialization.

Inheritance diagram for IObjectCreator:
[legend]

Constructor & Destructor Documentation

◆ ~IObjectCreator()

virtual ~IObjectCreator ( )
virtualdefault

Member Function Documentation

◆ create()

virtual Object* create ( )
pure virtual

Creates the object specified with getCreationType()

Implemented in ObjectCreator< Object, T >.

◆ getTypeToCreate()

virtual rtti::TypeInfo getTypeToCreate ( ) const
pure virtual
Returns
the type this object creates

Implemented in ObjectCreator< Object, T >.