GCC Middle and Back End API Reference
xml::raw Struct Reference

#include <xml.h>

Inheritance diagram for xml::raw:
Collaboration diagram for xml::raw:

Public Member Functions

 raw (std::string xml_src)
void write_as_xml (pretty_printer *pp, int depth, bool indent) const final override
virtual textdyn_cast_text ()
virtual elementdyn_cast_element ()
void dump (FILE *out) const
void DEBUG_FUNCTION dump () const

Data Fields

std::string m_xml_src

Detailed Description

A fragment of raw XML source, to be spliced in directly. Use sparingly.

Constructor & Destructor Documentation

◆ raw()

xml::raw::raw ( std::string xml_src)
inline

References m_xml_src.

Member Function Documentation

◆ dump() [1/2]

void DEBUG_FUNCTION xml::node::dump ( ) const
inlineinherited

References DEBUG_FUNCTION, and dump().

Referenced by dump().

◆ dump() [2/2]

void xml::node::dump ( FILE * out) const
inherited

◆ dyn_cast_element()

virtual element * xml::node::dyn_cast_element ( )
inlinevirtualinherited

Reimplemented in xml::element.

◆ dyn_cast_text()

virtual text * xml::node::dyn_cast_text ( )
inlinevirtualinherited

Reimplemented in xml::text.

◆ write_as_xml()

void xml::raw::write_as_xml ( pretty_printer * pp,
int depth,
bool indent ) const
finaloverridevirtual

Implements xml::node.

References m_xml_src, and pp_string().

Field Documentation

◆ m_xml_src

std::string xml::raw::m_xml_src

Referenced by raw(), and write_as_xml().


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