MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::IO::XmlRecordBinding< Input, Node, Access > Class Template Reference

Bind described attributes and configured XML child collections. More...

#include <XmlRecordBinding.hpp>

Collaboration diagram for MayaFlux::IO::XmlRecordBinding< Input, Node, Access >:

Classes

struct  ChildBinding

Public Member Functions

XmlRecordBinding & ignore (std::initializer_list< std::string_view > names)
 Leave these attributes to other readers of the same element.
std::optional< Input > read (const Node &node, std::string &error, uint64_t *error_row=nullptr) const
template<auto Pointer>
XmlRecordBinding & repeated (std::string child_name, std::string defaults_name={}, std::string required_item_attribute={}, size_t minimum=0)
XmlRecordBinding & required (std::string name)

Static Private Member Functions

static bool has_children (const Node &node)
static std::string label (const Node &node)
template<Reflect::Described T>
static bool overlay (T &target, const Node &node, std::string &error)

Private Attributes

std::vector< ChildBinding > m_children
std::vector< std::string > m_ignored
std::vector< std::string > m_required

Detailed Description

template<Reflect::Described Input, typename Node, typename Access = XmlRecordAccess<Node>>
class MayaFlux::IO::XmlRecordBinding< Input, Node, Access >

Bind described attributes and configured XML child collections.

Definition at line 41 of file XmlRecordBinding.hpp.


The documentation for this class was generated from the following file: