Cutelee 6.1.0
IfNotEqualNodeFactory Class Reference
Inheritance diagram for IfNotEqualNodeFactory:

Public Member Functions

NodegetNode (const QString &tagContent, Parser *p) const override
Public Member Functions inherited from Cutelee::AbstractNodeFactory
 AbstractNodeFactory (QObject *parent={})
 ~AbstractNodeFactory () override

Additional Inherited Members

Protected Member Functions inherited from IfEqualNodeFactory
Nodedo_getNode (const QString &tagContent, Parser *p, bool negate) const
Protected Member Functions inherited from Cutelee::AbstractNodeFactory
QList< FilterExpressiongetFilterExpressionList (const QStringList &list, Parser *p) const
Q_INVOKABLE QStringList smartSplit (const QString &str) const

Detailed Description

Definition at line 40 of file ifequal.h.

Constructor & Destructor Documentation

◆ IfNotEqualNodeFactory()

IfNotEqualNodeFactory::IfNotEqualNodeFactory ( )

Definition at line 64 of file ifequal.cpp.

Member Function Documentation

◆ getNode()

Node * IfNotEqualNodeFactory::getNode ( const QString & tagContent,
Parser * p ) const
overridevirtual

This method should be reimplemented to return a Node which can be rendered.

The tagContent is the content of the tag including the tag name and arguments. For example, if the template content is {% my_tag arg1 arg2 %}, the tagContent will be "my_tag arg1 arg2".

The Parser p is available and can be advanced if appropriate. For example, if the tag has an end tag, the parser can be advanced to the end tag.

See also
tags

Reimplemented from IfEqualNodeFactory.

Definition at line 66 of file ifequal.cpp.