PreCache NetInjector Documentation Center : PreCache NetInjector API Reference

C++ Classes

   







Filter

— an abstract class for attribute filters


class Filter()

Class Filter is the base class for all filters, including SimpleFilter and CompoundFilter objects. Filter objects provide access to a channel's attributes and validation against the associated channel's configuration.

Hierarchy

precache::util:: Serializable

      --> precache::event::Filter

subclasses —
CompoundFilter, SimpleFilter

Destructor

~Filter()

Frees up resources that were allocated for the Filter object.

Methods

Match

virtual bool Match(Notification& rkNotification)

Verifies whether a Notification type matches the Filter object.

rkNotification —
the notification to be matched

returns —
true, if the notification matches; otherwise false

Clone

virtual Filter* Clone()

Constructs a clone of the Filter object.

We provide this virtual method rather than a public copy constructor because the cloning must be class-specific, and because many of the true classes are hidden from applications.

ToString

virtual const PC_CHAR ToString()

Converts the filtered object to a string representation.