PreCache NetInjector Documentation Center : PreCache NetInjector API Reference

C++ Classes

   







OrFilter

— a disjunction of attribute filter expressions


OrFilter objects facilitate notification filtering by conjunctive expressions.

Hierarchy

precache::util:: Serializable

      --> precache::event:: Filter

            --> precache::event:: CompoundFilter

                  --> precache::event::OrFilter

Constructors

OrFilter by ChannelInfo

OrFilter(const ChannelInfo& rkChannelInfo)

Constructs an OrFilter object and associates it with a ChannelInfo object, providing access to a channel's attributes and validation against the associated channel's configuration.

rkChannelInfo —
the ChannelInfo object to be associated with the OrFilter

OrFilter by Proxy

OrFilter(const Proxy& rkProxy)

Constructs an OrFilter object and associates it with a Proxy object, providing access to a channel's attributes and validation against the associated channel's configuration.

rkProxy  —
the proxy associated with the OrFilter

OrFilter copy

Constructs a copy of a OrFilter object that is a deep copy of the full tree of Filters rooted at the copied object.

OrFilter(const OrFilter& rkOrFilter)

rkOrFilter  —
the OrFilter to be copied

Destructor

~OrFilter()

Frees up resources that were allocated for this object.

Methods

Match

virtual bool Match( Notification& rkNotification)

Verifies whether a notification type matches the OrFilter 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.

Note: 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.