The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

SVK::Log::FilterPipeline - a pipeline of log filter objects

DESCRIPTION

An SVK::Log::FilterPipeline represents a particular collection of log filter objects each of which needs to be called in turn.

METHODS

new

Construct a new SVK::Log::FilterPipeline object by constructing the specific filters that will handle the details and preparing for the first revision.

build_filter_object

Given the name of a filter, try and construct an appropriate filter object. Search @INC for modules that match the name given. If no appropriate classes are available, we die with an appropriate warning.

This method creates an object for the filter by calling its new() method

filter

SVK::Command::Log calls this routine when it wants to display (or process) a revision. The method then dispatches the information to the methods of the necessary filter objects in the pipeline to perform the real work.

finished

Tell all the filters that their jobs are done by calling footer and teardown on each one.

get_pipeline_command

Examine an exception to determine if it's a pipeline control exception. If it is, return the desired pipeline command. If it's not, rethrow the exception. If no exception is provided, the command 'continue' is returned.

present_revision

Display a single revision by passing it to the pipeline's presentation filter.

run_pipeline

Send a revision down the pipeline. Provide revision information to the revision() method of each filter in the pipeline until one of them says to stop. Then return the pipeline command.

set_up_presentation

Handle initial set up for the presentation filter. This should only be called once during an SVK::Log::FilterPipeline's lifetime.

set_up_selection

Handle initial set up for the selection filter pipeline. This should only be called once during SVK::Log::FilterPipeline's lifetime.

split_filter

Split a string into a filter name and an arbitrary argument string.

split_selectors

Split the description of the selection filter pipeline into individual filter names and their arguments. Each filter is separated by a '|' character. Literal pipe characters are included with '\|'.