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

◆ read_templates()

template<typename Source, typename Access>
bool MayaFlux::Portal::Forma::Detail::DocumentWalk< Source, Access >::read_templates ( const Source & section)
inlineprivate

Definition at line 331 of file Instantiate.hpp.

332 {
333 if (!only_attributes(section, {}))
334 return false;
335 return Access::for_each_child(section, [&](const Source& definition) {
336 if (Access::name(definition) != "template") {
338 + "> is not allowed in <templates>");
339 }
341 });
342 }
bool only_attributes(const Source &source, std::initializer_list< std::string_view > allowed, std::string_view allowed_prefix={})
bool fail(const Source &at, std::string message)
bool read_template(const Source &definition)

References fail(), only_attributes(), and read_template().

Referenced by read_structure().

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