class TCTFindTokenTypesByInterfaceAndAttribute : public MCTTokenTypeFilter |
A filter that returns only those token types that match the required set of interfaces and attributes.
On construction, an array containing the required interfaces and an array of required attributes/values is passed in.
Token types will be matched if every interface in the supplied array is supported by the token type, and every attribute is defined and has the same value.
v7.0
Public Member Functions | |
---|---|
TCTFindTokenTypesByInterfaceAndAttribute(const TArray< TUid >, const TArray< TCTTokenTypeAttribute >) | |
TBool | Accept(const CCTTokenTypeInfo &) |
Private Attributes | |
---|---|
const TArray< TCTTokenTypeAttribute > | iAttributes |
const TArray< TUid > | iInterfaces |
IMPORT_C | TCTFindTokenTypesByInterfaceAndAttribute | ( | const TArray< TUid > | aInterfaces, |
const TArray< TCTTokenTypeAttribute > | aAttributes | |||
) |
Constructor.
const TArray< TUid > aInterfaces | An array of Uids corresponding to the interfaces that the token type must support. |
const TArray< TCTTokenTypeAttribute > aAttributes | An array of the attributes and values that must be defined for the token type. |
TBool | Accept | ( | const CCTTokenTypeInfo & | aTokenType | ) | const [virtual] |
Tests whether all the interfaces and attributes associated with the filter are supported by the token type.
ETrue if all the interfaces and attributes associated with the filter are supported by the token type; EFalse, otherwise.
const CCTTokenTypeInfo & aTokenType | The token type to be tested. |
const TArray< TCTTokenTypeAttribute > | iAttributes | [private] |