|
ISLEman
|
Internal class representing the implementation of a template context. More...
Public Member Functions | |
| TemplateContextImpl (const TemplateEngine *e) | |
| void | push () |
| Push a new scope on the stack. More... | |
| void | pop () |
| Pop the current scope from the stack. More... | |
| void | set (const char *name, const TemplateVariant &v) |
| Sets a value in the current scope. More... | |
| TemplateVariant | get (const QCString &name) const |
| Gets the value for a given key. More... | |
| const TemplateVariant * | getRef (const QCString &name) const |
| Returns a pointer to the value corresponding to a given key. More... | |
| void | setOutputDirectory (const QCString &dir) |
| When files are created (i.e. More... | |
| void | setEscapeIntf (const QCString &ext, TemplateEscapeIntf *intf) |
| Sets the interface that will be used for escaping the result of variable expansion before writing it to the output. | |
| void | selectEscapeIntf (const QCString &ext) |
| void | setActiveEscapeIntf (TemplateEscapeIntf *intf) |
| void | setSpacelessIntf (TemplateSpacelessIntf *intf) |
| Sets the interface that will be used inside a spaceless block to remove any redundant whitespace. | |
| TemplateBlockContext * | blockContext () |
| TemplateVariant | getPrimary (const QCString &name) const |
| void | setLocation (const QCString &templateName, int line) |
| QCString | templateName () const |
| int | line () const |
| QCString | outputDirectory () const |
| TemplateEscapeIntf * | escapeIntf () const |
| TemplateSpacelessIntf * | spacelessIntf () const |
| void | enableSpaceless (bool b) |
| bool | spacelessEnabled () const |
| void | enableTabbing (bool b) |
| bool | tabbingEnabled () const |
| bool | needsRecoding () const |
| QCString | encoding () const |
| void | setEncoding (const QCString &file, int line, const QCString &enc) |
| QCString | recode (const QCString &s) |
| void | warn (const char *fileName, int line, const char *fmt,...) const |
| void | openSubIndex (const QCString &indexName) |
| void | closeSubIndex (const QCString &indexName) |
| void | addIndexEntry (const QCString &indexName, const QValueList< TemplateKeyValue > &arguments) |
Internal class representing the implementation of a template context.
|
virtual |
Gets the value for a given key.
| [in] | name | The name of key. |
Implements TemplateContext.
|
virtual |
Returns a pointer to the value corresponding to a given key.
| [in] | name | The name of key. |
Implements TemplateContext.
|
virtual |
Pop the current scope from the stack.
Implements TemplateContext.
|
virtual |
Push a new scope on the stack.
Implements TemplateContext.
|
virtual |
Sets a value in the current scope.
| [in] | name | The name of the value; the key in the dictionary. |
| [in] | v | The value associated with the key. |
Implements TemplateContext.
|
inlinevirtual |
When files are created (i.e.
by {% create ... %}) they written to the directory dir.
Implements TemplateContext.
1.8.12