Sese Framework
2.3.0
A cross-platform framework
|
Class factory built-in implementation. More...
#include <ClassFactory.h>
Classes | |
struct | RegisterInfo |
Registration Information. More... | |
Public Types | |
using | RegisterInfoMapType = std::map<std::string, RegisterInfo> |
Public Member Functions | |
ClassFactory () noexcept=default | |
ClassFactory (ClassFactory &&class_factory)=delete | |
ClassFactory (const ClassFactory &class_factory)=delete | |
virtual | ~ClassFactory ()=default |
virtual void | init ()=0 |
BaseClass::Ptr | createClassWithName (const std::string &id) noexcept |
Create an instance of a registered class. | |
Result< BaseClass::Ptr, ErrorCode > | createClassWithNameEx (const std::string &id) noexcept |
const RegisterInfoMapType & | getRegisterClassInfo () noexcept |
Get the type information of a registered class. | |
Protected Attributes | |
RegisterInfoMapType | infoMap {} |
Class factory built-in implementation.
using sese::plugin::ClassFactory::RegisterInfoMapType = std::map<std::string, RegisterInfo> |
|
defaultnoexcept |
|
delete |
|
delete |
|
virtualdefault |
|
noexcept |
Create an instance of a registered class.
id | Class registration name |
nullptr | Class not found |
|
noexcept |
|
noexcept |
|
pure virtual |
|
protected |
Referenced by getRegisterClassInfo().