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

◆ get_validated_handle()

SubsystemProcessingHandle * MayaFlux::Core::SubsystemManager::get_validated_handle ( SubsystemType  type) const

Get processing handle with validation.

Parameters
typeSubsystem type
Returns
Valid handle or nullptr if validation fails

Definition at line 299 of file SubsystemManager.cpp.

300{
301 auto subsystem_it = m_subsystems.find(type);
302 if (subsystem_it == m_subsystems.end()) {
304 "Invalid subsystem type: Subsystem not found.");
305 return nullptr;
306 }
307
308 auto handle = subsystem_it->second->get_processing_context_handle();
309 if (!handle) {
311 "Invalid processing context handle: Handle is null.");
312 return nullptr;
313 }
314
315 return handle;
316}
#define MF_ERROR(comp, ctx,...)
vk::PhysicalDeviceType type
Definition VKDevice.cpp:126
std::unordered_map< SubsystemType, std::shared_ptr< ISubsystem > > m_subsystems
@ Runtime
General runtime operations (default fallback)
@ Core
Core engine, backend, subsystems.

References MayaFlux::Journal::Core, m_subsystems, MF_ERROR, MayaFlux::Journal::Runtime, and type.

Referenced by has_process_hook(), register_process_hook(), and unregister_process_hook().

+ Here is the caller graph for this function: