MayaFlux 0.4.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 294 of file SubsystemManager.cpp.

295{
296 auto subsystem_it = m_subsystems.find(type);
297 if (subsystem_it == m_subsystems.end()) {
299 "Invalid subsystem type: Subsystem not found.");
300 return nullptr;
301 }
302
303 auto handle = subsystem_it->second->get_processing_context_handle();
304 if (!handle) {
306 "Invalid processing context handle: Handle is null.");
307 return nullptr;
308 }
309
310 return handle;
311}
#define MF_ERROR(comp, ctx,...)
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, and MayaFlux::Journal::Runtime.

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

+ Here is the caller graph for this function: