|
Cutelee 6.2.0
|
The InMemoryTemplateLoader loads Templates set dynamically in memory. More...
#include <cutelee/templateloader.h>

Public Member Functions | |
| bool | canLoadTemplate (const QString &name) const override |
| std::pair< QString, QString > | getMediaUri (const QString &fileName) const override |
| Template | loadByName (const QString &name, Engine const *engine) const override |
| void | setTemplate (const QString &name, const QString &content) |
| Public Member Functions inherited from Cutelee::AbstractTemplateLoader | |
| virtual | ~AbstractTemplateLoader () |
This class is mostly used for testing purposes, but can also be used for simple uses of Cutelee.
Templates can be made available using the setTemplate method, and will then be retrieved by the Cutelee::Engine as appropriate.
Definition at line 193 of file templateloader.h.
| InMemoryTemplateLoader::InMemoryTemplateLoader | ( | ) |
Definition at line 70 of file templateloader.cpp.
|
override |
Definition at line 72 of file templateloader.cpp.
|
overridevirtual |
Return true if a Template identified by name exists and can be loaded.
Implements Cutelee::AbstractTemplateLoader.
Definition at line 199 of file templateloader.cpp.
|
overridevirtual |
Return a complete URI for media identified by fileName.
Implements Cutelee::AbstractTemplateLoader.
Definition at line 218 of file templateloader.cpp.
|
overridevirtual |
Load a Template called name. Return an invalid Template if no content by that name exists.
Implements Cutelee::AbstractTemplateLoader.
Definition at line 204 of file templateloader.cpp.
References Cutelee::Engine::newTemplate().
Add a template content to this Loader.
Example:
Definition at line 193 of file templateloader.cpp.