Plasma Engine  2.0
Loading...
Searching...
No Matches
plRttiMappedObjectFactory< Object > Class Template Reference

A factory that creates the closest matching objects according to the passed type. More...

#include <RttiMappedObjectFactory.h>

Classes

struct  Event
 

Public Types

using CreateObjectFunc = Object* (*)(const plRTTI*)
 

Public Member Functions

void RegisterCreator (const plRTTI *pType, CreateObjectFunc creator)
 
void UnregisterCreator (const plRTTI *pType)
 
Object * CreateObject (const plRTTI *pType)
 

Public Attributes

plEvent< const Event & > m_Events
 

Detailed Description

template<typename Object>
class plRttiMappedObjectFactory< Object >

A factory that creates the closest matching objects according to the passed type.

Creators can be registered at the factory for a specific type. When the create function is called for a type, the parent type hierarchy is traversed until the first type is found for which a creator is registered.


The documentation for this class was generated from the following files: