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

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

Static Public Member Functions

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

Detailed Description

The implementation of the "get" filter.

Definition at line 628 of file template.cpp.

Member Function Documentation

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

Definition at line 631 of file template.cpp.

References TemplateStructIntf::get(), TemplateVariant::isValid(), TemplateVariant::String, TemplateVariant::Struct, TemplateVariant::toString(), TemplateVariant::toStruct(), and TemplateVariant::type().

{
{
TemplateVariant result = v.toStruct()->get(arg.toString());
//printf("\nok[%s]=%d\n",arg.toString().data(),result.type());
return result;
}
else
{
//printf("\nnok[%s]\n",arg.toString().data());
return FALSE;
}
}

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