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)
 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:

XMLDocumentContext& context = registry.ctx().get<XMLDocumentContext>();
XMLDocumentContext(InternalCtorTag ctorTag)
Internal constructor, creates a context on the given XMLDocument.
Definition XMLDocumentContext.h:46

Constructor & Destructor Documentation

◆ XMLDocumentContext()

donner::xml::components::XMLDocumentContext::XMLDocumentContext ( InternalCtorTag ctorTag)
inlineexplicit

Internal constructor, creates a context on the given XMLDocument.

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

XMLDocumentContext& context = registry.ctx().get<XMLDocumentContext>();
Parameters
ctorTagInternal tag to allow construction.

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