Skip to content

IComponentFactory

#include <IComponentFactory.hpp>

Inherited by CComponentFactory

Public Functions

Name
virtual ~IComponentFactory() =default
virtual void Register(std::shared_ptr< IComponent > component, const std::string & type, const boost::optional< std::string > & variant) =0
virtual outcome::result< std::shared_ptr< IComponent > > GetComponent(const std::string & type, const boost::optional< std::string > & variant) =0

Public Functions Documentation

function ~IComponentFactory

virtual ~IComponentFactory() =default

function Register

virtual void Register(
    std::shared_ptr< IComponent > component,
    const std::string & type,
    const boost::optional< std::string > & variant
) =0

Reimplemented by: CComponentFactory::Register

function GetComponent

virtual outcome::result< std::shared_ptr< IComponent > > GetComponent(
    const std::string & type,
    const boost::optional< std::string > & variant
) =0

Reimplemented by: CComponentFactory::GetComponent


Updated on 2026-03-04 at 13:10:44 -0800