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

◆ check_version()

template<typename Source, typename Access>
bool MayaFlux::Portal::Forma::Detail::DocumentWalk< Source, Access >::check_version ( )
inlineprivate

Definition at line 295 of file Instantiate.hpp.

296 {
297 const auto text = Access::attribute(m_root, "version");
298 if (!text)
299 return fail(m_root, "<forma> needs a version attribute");
300 uint32_t version {};
303 return fail(m_root, "unsupported Forma document version " + std::string(*text));
304 return true;
305 }
bool fail(const Source &at, std::string message)

References fail(), MayaFlux::Reflect::Invalid, and m_root.

Referenced by read_structure().

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