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

◆ claim_name()

template<typename Source, typename Access>
std::optional< std::string > MayaFlux::Portal::Forma::Detail::DocumentWalk< Source, Access >::claim_name ( const Source & source)
inlineprivate

Definition at line 319 of file Instantiate.hpp.

320 {
321 if (!m_names.claim(source, m_error))
322 return std::nullopt;
324 if (const auto held = m_ids.location_of(name)) {
325 fail(source, "name " + name + " is already used as an id at row " + std::to_string(*held));
326 return std::nullopt;
327 }
328 return name;
329 }
Reflect::AttributeIndex< Source, Access > m_names
bool fail(const Source &at, std::string message)
Reflect::AttributeIndex< Source, Access > m_ids

References MayaFlux::Portal::Forma::element_name_attribute, fail(), m_error, m_ids, and m_names.

Referenced by read_element().

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