Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
FakeElement::DeferredPrinter Struct Reference

Helper class to change how this element is printed as a tree. More...

#include "donner/base/element/tests/FakeElement.h"

Collaboration diagram for FakeElement::DeferredPrinter:
[legend]

Public Attributes

const FakeElementelement
 The element to print.

Friends

std::ostream & operator<< (std::ostream &os, const DeferredPrinter &printer)
 Ostream output operator, which prints the element's and all children.

Detailed Description

Helper class to change how this element is printed as a tree.

Example usage:

std::cout << element.printAsTree() << "\n";
FakeElement(const xml::XMLQualifiedNameRef &tagName="unknown")
Construct a fake element with the given tag name.
Definition FakeElement.h:30
const FakeElement & element
The element to print.
Definition FakeElement.h:229

Where FakeElement::printAsTree returns a DeferredPrinter as its result.


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