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

◆ has_process_hook()

bool MayaFlux::Core::SubsystemManager::has_process_hook ( SubsystemType  type,
const std::string &  name 
)

Check if a processing hook exists.

Parameters
typeSubsystemType to check
nameHook identifier to look for
Returns
True if hook exists (in either pre or post position)

Checks both pre-process and post-process hook collections for the named hook.

Definition at line 320 of file SubsystemManager.cpp.

321{
322 auto handle = get_validated_handle(type);
323 if (!handle)
324 return false;
325
326 return handle->pre_process_hooks.contains(name) || handle->post_process_hooks.contains(name);
327}
SubsystemProcessingHandle * get_validated_handle(SubsystemType type) const
Get processing handle with validation.

References get_validated_handle().

+ Here is the call graph for this function: