#include <xmltooling/util/TemplateEngine.h>
Public Member Functions | |
| void | setTagPrefix (const char *tagPrefix) |
| Sets the tag name to use when locating template replacement tags. | |
| virtual void | run (std::istream &is, std::ostream &os, const TemplateParameters ¶meters, const XMLToolingException *e=NULL) const |
| Processes template from an input stream and executes replacements and conditional logic based on parameters. | |
Classes | |
| class | TemplateParameters |
| Interface to parameters to plug into templates. More... | |
Supports the following:
The default tag prefix is "mlp". This can be overridden for compatibility.
| void xmltooling::TemplateEngine::setTagPrefix | ( | const char * | tagPrefix | ) |
Sets the tag name to use when locating template replacement tags.
| tagPrefix | base prefix for tags |
| virtual void xmltooling::TemplateEngine::run | ( | std::istream & | is, | |
| std::ostream & | os, | |||
| const TemplateParameters & | parameters, | |||
| const XMLToolingException * | e = NULL | |||
| ) | const [virtual] |
Processes template from an input stream and executes replacements and conditional logic based on parameters.
| is | input stream providing template | |
| os | output stream to send results of executing template | |
| parameters | parameters to plug into template | |
| e | optional exception to extract parameters from |
1.5.6