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

◆ xml_composite_layout()

MAYAFLUX_API Kakshya::CompositeLayout MayaFlux::IO::xml_composite_layout ( )
nodiscard

Composite row layout used by the XML reader and writer.

Rows are in document preorder. The optional parent field holds the global index of the owning element or declaration; top-level nodes have no parent. Attribute rows immediately follow their owner and precede child nodes. Kind is element, attribute, text, cdata, comment, pi, declaration, or doctype. Name and value are present where that node kind supplies them.

Definition at line 13 of file XmlReader.cpp.

14{
16 layout.add_field<uint64_t>("parent");
17 layout.add_field<std::string>("kind");
18 layout.add_field<std::string>("name");
19 layout.add_field<std::string>("value");
20
21 return layout;
22}
bool add_field(std::string name)
Declare a named arithmetic, GLM, text, or binary field.
Definition Composite.hpp:74
Shared field description and byte layout for a CompositeArray.
Definition Composite.hpp:60

References MayaFlux::Kakshya::CompositeLayout::add_field().

Referenced by MayaFlux::IO::XmlDocument::from_rows(), MayaFlux::IO::XmlReader::open(), MayaFlux::IO::XmlWriter::open(), MayaFlux::IO::IOManager::open_composite_reader(), and MayaFlux::IO::XmlWriter::write_rows().

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