Cutelee 6.1.0
L10nFileSizeVarNode Class Reference
Inheritance diagram for L10nFileSizeVarNode:

Public Member Functions

 L10nFileSizeVarNode (const FilterExpression &size, const FilterExpression &unitSystem, const FilterExpression &precision, const FilterExpression &multiplier, const QString &resultName, QObject *parent=nullptr)
void render (OutputStream *stream, Context *c) const override
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 69 of file l10n_filesize.h.

Constructor & Destructor Documentation

◆ L10nFileSizeVarNode()

L10nFileSizeVarNode::L10nFileSizeVarNode ( const FilterExpression & size,
const FilterExpression & unitSystem,
const FilterExpression & precision,
const FilterExpression & multiplier,
const QString & resultName,
QObject * parent = nullptr )

Definition at line 181 of file l10n_filesize.cpp.

Member Function Documentation

◆ render()

void L10nFileSizeVarNode::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 191 of file l10n_filesize.cpp.

References Cutelee::calcFileSize(), Cutelee::SafeString::get(), Cutelee::getSafeString(), Cutelee::Context::insert(), and Cutelee::Context::localizer().