yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::app::core::ObjectFactory Class Reference

#include <message.h>

Public Member Functions

template<typename T >
void RegisterType (const std::string &type_name)
 
std::unique_ptr< ReflectableCreateObject (const std::string &type_name) const
 

Private Attributes

std::unordered_map< std::string, std::function< std::unique_ptr< Reflectable >()> > creators_
 

Detailed Description

Definition at line 118 of file message.h.

Member Function Documentation

◆ RegisterType()

template<typename T >
void yaze::app::core::ObjectFactory::RegisterType ( const std::string & type_name)

Definition at line 116 of file message.cc.

References creators_.

◆ CreateObject()

std::unique_ptr< Reflectable > yaze::app::core::ObjectFactory::CreateObject ( const std::string & type_name) const

Definition at line 120 of file message.cc.

References creators_.

Member Data Documentation

◆ creators_

std::unordered_map<std::string, std::function<std::unique_ptr<Reflectable>()> > yaze::app::core::ObjectFactory::creators_
private

Definition at line 127 of file message.h.

Referenced by CreateObject(), and RegisterType().


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