XII Release 0.1.0
Loading...
Searching...
No Matches
xiiRttiMappedObjectFactory< Object > Class Template Reference

Copyright (c) Theophilus Eriata. All Rights Reserved. More...

#include <RttiMappedObjectFactory.h>

Classes

struct  Event

Public Types

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

Public Member Functions

 xiiRttiMappedObjectFactory ()
 Copyright (c) Theophilus Eriata. All Rights Reserved.
void RegisterCreator (const xiiRTTI *pType, CreateObjectFunc creator)
void UnregisterCreator (const xiiRTTI *pType)
Object * CreateObject (const xiiRTTI *pType)

Public Attributes

xiiEvent< const Event & > m_Events

Detailed Description

template<typename Object>
class xiiRttiMappedObjectFactory< Object >

Copyright (c) Theophilus Eriata. All Rights Reserved.

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: