|
MIRA
|
#include <xml/macros/XMLMacroProcessor.h>
Public Member Functions | |
| XMLMacroProcessor (XMLDomPreprocessor &) | |
| XMLDomPreprocessor & | getPreprocessor () |
| XMLNode | expand (XMLNode ioNode) |
| Expand a macro. More... | |
| bool | isMacro (const XMLDom::const_iterator &node) |
| void | onDocumentEntered (XMLDom::const_iterator root, XMLDom::iterator ioDocument) |
| To be called before the contents of a document are processed. More... | |
| void | onDocumentLeft (const std::string &targetNamespace="") |
| To be called after an included document has been processed. More... | |
| XMLNode | processInPlace (XMLNode ioNode) |
| XMLNode | invokeMacro (const std::string &name, XMLNode node) |
| xmlmacros::ScopePtr | swapScope (xmlmacros::ScopePtr scope) |
| xmlmacros::Scope & | getCurrentScope () |
| const xmlmacros::Scope & | getCurrentScope () const |
| xmlmacros::ScopePtr | getCurrentScopePtr () const |
| xmlmacros::ScopePtr | getGlobalScopePtr () const |
| std::string | coerceToString (const std::string &name) |
| void | pushInvocation (xmlmacros::SourceInfo &&) |
| void | popInvocation () |
Static Public Member Functions | |
| static std::tuple< xmlmacros::Identifier, std::string > | getIdentifier (XMLDom::const_iterator node) |
| static xmlmacros::Identifier | makeIdentifier (const std::string &name) |
Static Public Attributes | |
| static const XMLDom::NameSpace | NAMESPACE |
Protected Attributes | |
| xmlmacros::ScopePtr | mGlobalScope |
| Global scope of the macro processor. More... | |
| xmlmacros::ScopePtr | mCurrentScope |
| Current active definition scope. More... | |
| std::stack< xmlmacros::ScopePtr > | mImportStack |
| Scopes of higher-up documents. More... | |
| std::vector< xmlmacros::SourceInfo > | mInvokeStack |
| Keeps track of the invoke-path of macros for error messages. More... | |
| XMLDomPreprocessor * | mPreprocessor |
| xmlmacros::MacroPtr | mDefineHandler |
| xmlmacros::MacroPtr | mInlineImportHandler |
Static Protected Attributes | |
| static const uint | MAX_INVOKE_DEPTH = 1000 |
| Used to prevent infinite recursion. More... | |
|
inline |
Expand a macro.
| ioNode | Node to expand in-place. |
| bool isMacro | ( | const XMLDom::const_iterator & | node | ) |
| void onDocumentEntered | ( | XMLDom::const_iterator | root, |
| XMLDom::iterator | ioDocument | ||
| ) |
To be called before the contents of a document are processed.
| root | The original root node of the included file. |
| ioDocument | The root node to modify. |
| void onDocumentLeft | ( | const std::string & | targetNamespace = "" | ) |
To be called after an included document has been processed.
| targetNamespace | Make macros from the included document available under the specified namespace. Empty to not import macros. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| std::string coerceToString | ( | const std::string & | name | ) |
| void pushInvocation | ( | xmlmacros::SourceInfo && | ) |
| void popInvocation | ( | ) |
|
inlinestatic |
|
inlinestatic |
|
static |
|
protected |
Global scope of the macro processor.
|
protected |
Current active definition scope.
|
protected |
Scopes of higher-up documents.
|
staticprotected |
Used to prevent infinite recursion.
|
protected |
Keeps track of the invoke-path of macros for error messages.
|
protected |
|
protected |
|
protected |
1.8.14