MayaFlux 0.3.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 256 of file SubsystemManager.cpp.

257{
258 auto subsystem_it = m_subsystems.find(type);
259 if (subsystem_it == m_subsystems.end()) {
261 "Invalid subsystem type: Subsystem not found.");
262 return nullptr;
263 }
264
265 auto handle = subsystem_it->second->get_processing_context_handle();
266 if (!handle) {
268 "Invalid processing context handle: Handle is null.");
269 return nullptr;
270 }
271
272 return handle;
273}
#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: