|
MIRA
|
The "Define" macro. More...
#include <xml/macros/Builtins.h>

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< SourceInfo > | getSource () const |
Static Public Member Functions | |
| static bool | isDefinition (const std::string &name) |
| static std::string | extractName (XMLDom::const_iterator node) |
Static Public Attributes | |
| static constexpr const char * | PREFIX = "Define_" |
The "Define" macro.
Allows to define new macros inside of XML files.
Usage:
<macro:Define_MyMacro> <Parameters> <MyParameter> <MyParameterWithDefault>42</MyParameterWithDefault> </Parameters> <Body>
</Body> </macro:Define_MyMacro>
|
finalvirtual |
Expands the macro.
| ioNode | Node to expand in-place. |
Implements IMacro.
|
inlinestatic |
|
static |
|
inlineinherited |
|
inlinevirtualinherited |
Reimplemented in NothingMacro, XMLValueMacro, and UserDefinedMacro.
|
inlinevirtualinherited |
Reimplemented in NothingMacro, XMLValueMacro, and UserDefinedMacro.
|
inlinevirtualinherited |
Reimplemented in UserDefinedMacro.
|
static |
1.8.14