Cutelee 6.2.0
WithLocaleNode Class Reference
Inheritance diagram for WithLocaleNode:

Public Member Functions

 WithLocaleNode (const FilterExpression &localeName, QObject *parent={})
void render (OutputStream *stream, Context *c) const override
void setNodeList (const NodeList &nodeList)
Public Member Functions inherited from Cutelee::Node
 Node (QObject *parent={})
 ~Node () override

Additional Inherited Members

Protected Member Functions inherited from Cutelee::Node
TemplateImpl * containerTemplate () const
void streamValueInContext (OutputStream *stream, const QVariant &input, Cutelee::Context *c) const

Detailed Description

Definition at line 37 of file with_locale.h.

Constructor & Destructor Documentation

◆ WithLocaleNode()

WithLocaleNode::WithLocaleNode ( const FilterExpression & localeName,
QObject * parent = {} )

Definition at line 54 of file with_locale.cpp.

Member Function Documentation

◆ render()

void WithLocaleNode::render ( OutputStream * stream,
Context * c ) const
overridevirtual

Reimplement this to render the template in the Context c.

This will also involve calling render on and child nodes.

Implements Cutelee::Node.

Definition at line 65 of file with_locale.cpp.

References Cutelee::SafeString::get(), Cutelee::getSafeString(), Cutelee::Context::localizer(), Cutelee::Context::pop(), and Cutelee::Context::push().

◆ setNodeList()

void WithLocaleNode::setNodeList ( const NodeList & nodeList)

Definition at line 60 of file with_locale.cpp.