|
AusweisApp2
|
#include <Template.h>
Öffentliche Methoden | |
| Template (const QString &pTemplate) | |
| Construct the template pTemplate. Mehr ... | |
| const QSet< QString > | getContextKeys () const |
| Get template context keys, i.e. Mehr ... | |
| bool | setContextParameter (const QString &pKey, const QString &pValue) |
| Set known context key as parameter. Mehr ... | |
| QString | render () const |
| Renders the template by replacing all contained context keys by context values. Mehr ... | |
Öffentliche, statische Methoden | |
| static Template | fromFile (const QString &pTemplateFileName) |
| Construct a template from file. Mehr ... | |
|
explicit |
Construct the template pTemplate.
|
static |
Construct a template from file.
| const QSet< QString > Template::getContextKeys | ( | ) | const |
Get template context keys, i.e.
the possible keys to add as context parameter.
| QString Template::render | ( | ) | const |
Renders the template by replacing all contained context keys by context values.
If for a contained key no value is specified, the key is replaced by the empty string.
| bool Template::setContextParameter | ( | const QString & | pKey, |
| const QString & | pValue | ||
| ) |
Set known context key as parameter.
Unknown context keys are ignored, already set context values are overwritten.