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

◆ parse_xml_tuple()

template<typename T, size_t N>
std::optional< std::array< T, N > > MayaFlux::IO::parse_xml_tuple ( std::string_view source,
XmlTextError & error )
nodiscard

Definition at line 47 of file XmlTextCodec.hpp.

49{
50 const auto values = parse_xml_numbers<T>(source);
51 if (!values) {
53 return std::nullopt;
54 }
55 if (values->size() != N) {
57 return std::nullopt;
58 }
59 std::array<T, N> result;
60 std::ranges::copy(*values, result.begin());
61 return result;
62}
std::optional< std::vector< T > > parse_xml_numbers(std::string_view source)

References Cardinality, Invalid, N, and parse_xml_numbers().

Referenced by MayaFlux::IO::XmlTextCodec< T >::decode().

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