#include <message.h>
Public Member Functions | |
template<typename T > | |
void | RegisterType (const std::string &type_name) |
std::unique_ptr< Reflectable > | CreateObject (const std::string &type_name) const |
Private Attributes | |
std::unordered_map< std::string, std::function< std::unique_ptr< Reflectable >()> > | creators_ |
void yaze::app::core::ObjectFactory::RegisterType | ( | const std::string & | type_name | ) |
Definition at line 116 of file message.cc.
References creators_.
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_.
|
private |
Definition at line 127 of file message.h.
Referenced by CreateObject(), and RegisterType().