PreCache NetInjector Documentation Center : PreCache NetInjector API Reference

C++ Classes

   







FilterFactory

— generate filters from expressions


The FilterFactory is a singleton class that generates Filter objects from string attribute filter expressions.

Destructor

~FilterFactory()

Frees up resources associated with this object

Methods

CreateFilter

Filter* CreateFilter(const PC_CHAR* kszFilterExp) throw( InvalidFilterException)

Creates a tree of Filter objects from a string attribute filter expression and associates the objects with a ChannelInfo.

kszFilterExp —
the attribute filter expression to be parsed

rkChannelInfo —
the ChannelInfo with which the constructed Filter objects will be associated, providing access to a channel and validation against the associated channel's configuration

returns —
a pointer to the newly-allocated tree of Filter objects

throws —
CreateFilter throws an InvalidFilterException if there are syntactic or semantic errors in kszFilterExp.