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

◆ is_domain_valid()

MAYAFLUX_API bool MayaFlux::is_domain_valid ( Domain  domain)

Checks if a domain is valid (all constituent tokens are compatible)

Parameters
domainThe domain to validate
Returns
true if domain is valid, false otherwise

Definition at line 36 of file Domain.cpp.

37{
38 try {
39 auto tokens = decompose_domain(domain);
40
41 Buffers::validate_token(tokens.Buffer);
42
43 return true;
44 } catch (const std::exception&) {
45 return false;
46 }
47}
Core::SubsystemTokens decompose_domain(Domain domain)
Decomposes a Domain enum into its constituent ProcessingTokens.
Definition Domain.cpp:10

References decompose_domain(), and MayaFlux::Buffers::validate_token().

+ Here is the call graph for this function: