MIRA
Public Member Functions | Static Public Attributes | List of all members
SplitMacro Class Reference

Splits content into words and inserts them as word nodes. More...

#include <xml/macros/Builtins.h>

Inheritance diagram for SplitMacro:
Inheritance graph
[legend]

Public Member Functions

XMLNode expand (XMLMacroProcessor &processor, XMLNode node) final
 Expands the macro. More...
 
template<typename Reflector >
void reflect (Reflector &r)
 
virtual bool canCoerceToString () const
 
virtual void coerceToString (XMLMacroProcessor &, std::ostream &)
 
virtual std::optional< SourceInfogetSource () const
 

Static Public Attributes

static constexpr const char * NAME = "Split"
 

Detailed Description

Splits content into words and inserts them as word nodes.

Member Function Documentation

◆ expand()

XMLNode expand ( XMLMacroProcessor ,
XMLNode  ioNode 
)
finalvirtual

Expands the macro.

Parameters
ioNodeNode to expand in-place.
Returns
an iterator to the next node to process.

Implements IMacro.

◆ reflect()

void reflect ( Reflector &  r)
inlineinherited

◆ canCoerceToString()

virtual bool canCoerceToString ( ) const
inlinevirtualinherited
Returns
true of toString is implemented.

Reimplemented in NothingMacro, XMLValueMacro, and UserDefinedMacro.

◆ coerceToString()

virtual void coerceToString ( XMLMacroProcessor ,
std::ostream &   
)
inlinevirtualinherited

Reimplemented in NothingMacro, XMLValueMacro, and UserDefinedMacro.

◆ getSource()

virtual std::optional<SourceInfo> getSource ( ) const
inlinevirtualinherited

Reimplemented in UserDefinedMacro.

Member Data Documentation

◆ NAME

constexpr const char* NAME = "Split"
static

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