My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Member Functions | List of all members
FilterDefault Class Reference

The implementation of the "default" filter. More...

Static Public Member Functions

static TemplateVariant apply (const TemplateVariant &v, const TemplateVariant &arg)
 

Detailed Description

The implementation of the "default" filter.

Definition at line 799 of file template.cpp.

Member Function Documentation

static TemplateVariant FilterDefault::apply ( const TemplateVariant v,
const TemplateVariant arg 
)
inlinestatic

Definition at line 802 of file template.cpp.

References TemplateVariant::isValid(), TemplateVariant::String, TemplateVariant::toString(), and TemplateVariant::type().

{
if (!v.isValid())
{
return arg;
}
else if (v.type()==TemplateVariant::String && v.toString().isEmpty())
{
return arg;
}
else
{
return v;
}
}

The documentation for this class was generated from the following file: