Classes Clusters Cluster hierarchy Relations Contracts Flat contracts Go to:
indexing description: "Filter matching on a range of priorities." project: "Project Goanna <http://sourceforge.net/projects/goanna>" library: "log4e" date: "$Date$" revision: "$Revision$" author: "Glenn Maughan <glennmaughan@goanna.info>" copyright: "Copyright (c) 2002 Glenn Maughan" license: "Eiffel Forum License v1 (see forum.txt)." class interface L4E_PRIORITY_RANGE_FILTER create make feature -- Initialization make (min_priority, max_priority: L4E_PRIORITY; match_on_filter: BOOLEAN) -- Create filter to match 'priority'. The decision is based on -- the following decisions: -- -- If the priority is outside the range (inclusive) then Filter_reject is returned. -- If the priority is within the range and 'match_on_filter' is True then -- Filter_accept is returned. -- If the priority is within the range and 'match_on_filter' if False then -- Filter_neutral is returned. -- -- Passing Void for 'min_priority' effectively sets no minimum range. -- Passing Void for 'max_priority' effectively sets no maximum range. require range_specified: min_priority /= void or max_priority /= void range_valid: min_priority /= void and max_priority /= void implies min_priority < max_priority feature -- Status report decide (event: L4E_EVENT): INTEGER -- Should 'event' be logged. Return one of Filter_accept, -- Filter_reject, or Filter_neutral. end -- class L4E_PRIORITY_RANGE_FILTER
Classes Clusters Cluster hierarchy Relations Contracts Flat contracts Go to:

Goanna Log4E -- Copyright © 2002 Glenn Maughan