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

267{
268 auto handle = get_validated_handle(type);
269 if (!handle)
270 return false;
271
272 return handle->pre_process_hooks.contains(name) || handle->post_process_hooks.contains(name);
273}
SubsystemProcessingHandle * get_validated_handle(SubsystemType type) const
Get processing handle with validation.

References get_validated_handle().

+ Here is the call graph for this function: