AusweisApp
|
#include <Template.h>
Öffentliche Methoden | |
Template (const QString &pTemplate) | |
Construct the template pTemplate. | |
const QSet< QString > & | getContextKeys () const |
Get template context keys, i.e. | |
bool | setContextParameter (const QString &pKey, const QString &pValue) |
Set known context key as parameter. | |
QString | render () const |
Renders the template by replacing all contained context keys by context values. | |
Öffentliche, statische Methoden | |
static Template | fromFile (const QString &pTemplateFileName) |
Construct a template from file. | |
|
explicit |
Construct the template pTemplate.
Construct a template from file.
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.
Set known context key as parameter.
Unknown context keys are ignored, already set context values are overwritten.