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

◆ get_network_subsystem()

std::shared_ptr< NetworkSubsystem > MayaFlux::Core::SubsystemManager::get_network_subsystem ( )

Get typed access to the network subsystem.

Returns
Shared pointer to NetworkSubsystem or nullptr if not created

Convenience method that automatically casts to NetworkSubsystem type. Equivalent to dynamic_cast on get_subsystem(SubsystemType::NETWORK).

Definition at line 133 of file SubsystemManager.cpp.

134{
135 if (auto subsystem = std::dynamic_pointer_cast<NetworkSubsystem>(get_subsystem(SubsystemType::NETWORK))) {
136 return subsystem;
137 }
138 return nullptr;
139}
std::shared_ptr< ISubsystem > get_subsystem(SubsystemType type)
Get access to a specific subsystem by type.

References get_subsystem(), and MayaFlux::Core::NETWORK.

+ Here is the call graph for this function: