MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ create_subsystem_internal()

template<typename SType , typename... Args>
void MayaFlux::Core::SubsystemManager::create_subsystem_internal ( SubsystemType  type,
Args &&...  args 
)
inline

Internal template method for type-safe subsystem creation.

Template Parameters
STypeType of subsystem to create
ArgsConstructor argument types
Parameters
typeSubsystemType enum value identifying the subsystem category
argsConstructor arguments for the subsystem

Creates a subsystem instance and registers it with the manager. Used internally by specific subsystem creation methods.

Definition at line 59 of file SubsystemManager.hpp.

60 {
61 auto subsystem = std::make_shared<SType>(std::forward<Args>(args)...);
62 add_subsystem(type, std::move(subsystem));
63 }
void add_subsystem(SubsystemType type, const std::shared_ptr< ISubsystem > &subsystem)
Register a subsystem instance with the manager.