MayaFlux 0.1.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 32 of file Domain.cpp.

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

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

+ Here is the call graph for this function: