App::Addex::Output - base class for output plugins


App-Addex documentation Contained in the App-Addex distribution.

Index


Code Index:

NAME

Top

App::Addex::Output - base class for output plugins

VERSION

Top

version 0.022

DESCRIPTION

Top

This is a base class for output plugins.

METHODS

Top

new

  my $output_plugin = App::Addex::Output->new(\%arg);

This method returns a new outputter.

process_entry

  $output_plugin->process_entry($entry);

This method is called once for each entry to be processed. It must be overridden in output plugin classes, or the base implementation will throw an exception when called.

finalize

  $output_plugin->finalize;

This method is called after all entries have been processed.

AUTHOR

Top

Ricardo SIGNES, <rjbs@cpan.org>

BUGS

Top

Please report any bugs or feature requests through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

COPYRIGHT

Top


App-Addex documentation Contained in the App-Addex distribution.
#!/usr/bin/perl
use strict;
use warnings;

package App::Addex::Output;
use Carp ();

our $VERSION = '0.022';

sub new {
  my ($class) = @_;

  return bless {} => $class;
}

sub process_entry { Carp::confess "process_entry method not implemented" }

sub finalize { }

1;