MayaFlux 0.2.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 217 of file SubsystemManager.cpp.

218{
219 auto subsystem_it = m_subsystems.find(type);
220 if (subsystem_it == m_subsystems.end()) {
222 "Invalid subsystem type: Subsystem not found.");
223 return nullptr;
224 }
225
226 auto handle = subsystem_it->second->get_processing_context_handle();
227 if (!handle) {
229 "Invalid processing context handle: Handle is null.");
230 return nullptr;
231 }
232
233 return handle;
234}
#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: