• Antelope Release 5.10 Linux CentOS release 7.6.1810 (Core) 3.10.0 2020-05-12

 

NAME

Oorb::Filter - Filter class for the oorb library

SYNOPSIS

-loorb $(ORBLIBS)

#include "oorb.h"

namespace Oorb

class Filter

DESCRIPTION

The Filter class represents operations on Oorb::OrbPacket(3)s that optionally accept or reject those packets based on certain conditions, and/or transform those packets based on a set of rules. The Filter class is intended as a base class, from which specific filters should be subclassed. The base class accepts every packet unconditionally and leaves the content of the packet untouched. The Filter constructor is called with two boolean values to turn on or off the winnowing and transformation of packets, respectively. These determine whether the protected methods accept() and/or morph() are called. To use a given Filter, the calling program should invoke the filter() method on each Oorb::OrbPacket(3) which should be filtered. Subclasses of Filter should override the definitions of the virtual methods accept() and/or morph(). The former returns a boolean indicating whether or not to accept the packet; the latter returns a std::shared_ptr to the transformed Oorb::OrbPacket(3). Subclasses should not need to override the filter() method.

CONSTRUCTORS

METHODS

LIBRARY

-loorb $(ORBLIBS)

ATTRIBUTES

MT-Safe

SEE ALSO

Oorb(3), OorbFilters(3)

AUTHOR

Kent Lindquist
Printer icon