MIRA
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ImportInlineMacro Class Reference

Usage: <macro:MyImportedMacro From="file/that/defines/MyImportedMacro.xml"> ... More...

#include <xml/macros/Builtins.h>

Inheritance diagram for ImportInlineMacro:
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
 

Protected Member Functions

std::string createAnonymousName (const std::string originalName)
 

Protected Attributes

uint mNameCount
 

Detailed Description

Usage: <macro:MyImportedMacro From="file/that/defines/MyImportedMacro.xml"> ...

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.

◆ createAnonymousName()

std::string createAnonymousName ( const std::string  originalName)
inlineprotected

◆ 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

◆ mNameCount

uint mNameCount
protected

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