Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
donner::xml::components::XMLDocumentContext Class Reference

Holds global state of an XML document, such as the root element. More...

#include "donner/base/xml/components/XMLDocumentContext.h"

Public Member Functions

 XMLDocumentContext (InternalCtorTag ctorTag, const std::shared_ptr< Registry > &registry)
 Internal constructor, creates a context on the given XMLDocument.
 

Public Attributes

Entity rootEntity = entt::null
 Root entity of the document.
 

Friends

class donner::xml::XMLDocument
 
class donner::xml::XMLNode
 

Detailed Description

Holds global state of an XML document, such as the root element.

One instance of this class is created per XML document.

Access the document context via the Registry::ctx API:

A parser result, which may contain a result of type T, or an error, or both.
Definition ParseResult.h:17
Holds global state of an XML document, such as the root element.
Definition XMLDocumentContext.h:27

Constructor & Destructor Documentation

◆ XMLDocumentContext()

donner::xml::components::XMLDocumentContext::XMLDocumentContext ( InternalCtorTag ctorTag,
const std::shared_ptr< Registry > & registry )
inlineexplicit

Internal constructor, creates a context on the given XMLDocument.

To use this class, access it via the Registry::ctx API.

Parameters
ctorTagInternal tag to allow construction.
registryUnderlying registry for the document.

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