#include <ct/tctfindtokentypesbyinterfaceandattribute.h>
Link against: ctfinder.lib
class TCTFindTokenTypesByInterfaceAndAttribute : public MCTTokenTypeFilter |
Public Member Functions | |
---|---|
TCTFindTokenTypesByInterfaceAndAttribute(const TArray< TUid >, const TArray< TCTTokenTypeAttribute >) | |
virtual TBool | Accept(const CCTTokenTypeInfo &) |
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.
IMPORT_C | TCTFindTokenTypesByInterfaceAndAttribute | ( | const TArray< TUid > | aInterfaces, |
const TArray< TCTTokenTypeAttribute > | aAttributes | |||
) |
Constructor.
Parameters | |
---|---|
aInterfaces | An array of Uids corresponding to the interfaces that the token type must support. |
aAttributes | An array of the attributes and values that must be defined for the token type. |
TBool | Accept | ( | const CCTTokenTypeInfo & | aTokenType | ) | const [virtual] |
Reimplemented from MCTTokenTypeFilter::Accept(const CCTTokenTypeInfo &)const
Tests whether all the interfaces and attributes associated with the filter are supported by the token type.
Parameters | |
---|---|
aTokenType | The token type to be tested. |