#include <nap/corefactory.h>
Public Member Functions | |
CoreFactory (Core &core) | |
![]() | |
Factory ()=default | |
Factory (const Factory &)=delete | |
virtual | ~Factory ()=default |
Factory & | operator= (const Factory &)=delete |
void | addObjectCreator (std::unique_ptr< IObjectCreator > objectCreator) |
Object * | create (rtti::TypeInfo typeInfo) |
bool | canCreate (rtti::TypeInfo typeInfo) const |
Protected Member Functions | |
virtual rtti::Object * | createDefaultObject (rtti::TypeInfo typeInfo) override |
The CoreFactory is a derived class from Factory that is used to automatically create objects that take Core as argument Any class that doesn't have a constructor with Core as argument will be created normally through the base.
CoreFactory | ( | Core & | core | ) |
|
overrideprotectedvirtual |
Reimplemented from Factory.