Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
donner::svg::parser::AttributeParser Class Reference

Parses XML attributes and sets applies them to SVGElements. More...

#include "donner/svg/xml/AttributeParser.h"

Static Public Member Functions

static std::optional< ParseErrorParseAndSetAttribute (XMLParserContext &context, SVGElement &element, const XMLQualifiedNameRef &name, std::string_view value) noexcept
 Parse an XML attribute and set it on the given element.
 

Detailed Description

Parses XML attributes and sets applies them to SVGElements.

Member Function Documentation

◆ ParseAndSetAttribute()

std::optional< ParseError > donner::svg::parser::AttributeParser::ParseAndSetAttribute ( XMLParserContext & context,
SVGElement & element,
const XMLQualifiedNameRef & name,
std::string_view value )
staticnoexcept

Parse an XML attribute and set it on the given element.

Parameters
contextThe parser context, used to store XML document metadata and store warnings.
elementThe element to set the attribute on.
nameThe name of the attribute, as specified in the document's XML.
valueThe value of the attribute.

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