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

◆ only_hit_attributes()

template<typename Source, typename Access>
bool MayaFlux::Portal::Forma::Detail::only_hit_attributes ( const Source & node,
std::initializer_list< std::string_view > allowed,
std::string & error )

Definition at line 81 of file ElementHit.hpp.

82 {
83 return Access::for_each_attribute(node, [&](std::string_view name, std::string_view) {
84 if (std::ranges::find(allowed, name) != allowed.end())
85 return true;
86 return hit_fail<Source, Access>(node, "has an unsupported attribute " + std::string(name), error);
87 });
88 }
bool hit_fail(const Source &at, const std::string &message, std::string &error)

References hit_fail().

Referenced by MayaFlux::Portal::Forma::read_hit_child(), and read_region().

Here is the call graph for this function:
Here is the caller graph for this function: