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

◆ get_subsystem()

std::shared_ptr< ISubsystem > MayaFlux::Core::SubsystemManager::get_subsystem ( SubsystemType  type)

Get access to a specific subsystem by type.

Parameters
typeSubsystemType enum value identifying the subsystem
Returns
Shared pointer to subsystem or nullptr if not found

Provides access to registered subsystems for direct interaction. Returns nullptr if subsystem of specified type doesn't exist.

Definition at line 121 of file SubsystemManager.cpp.

122{
123 return has_subsystem(type) ? m_subsystems[type] : nullptr;
124}
bool has_subsystem(SubsystemType type) const
Check if a subsystem type exists.
std::unordered_map< SubsystemType, std::shared_ptr< ISubsystem > > m_subsystems

References has_subsystem(), and m_subsystems.

Referenced by get_audio_subsystem(), and get_graphics_subsystem().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: