## Babble/Output.pm ## Copyright (C) 2004 Gergely Nagy ## ## This file is part of Babble. ## ## Babble is free software; you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by ## the Free Software Foundation; version 2 dated June, 1991. ## ## Babble is distributed in the hope that it will be useful, but WITHOUT ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ## for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program; if not, write to the Free Software ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA package Babble::Output; use strict; use Carp; use Exporter (); use vars qw(@ISA); @ISA = qw(Exporter); =pod =head1 NAME Babble::Output - Base output class for Babble =head1 DESCRIPTION Babble::Output is a base class, a class which should never ever be used directly by applications (as it does nothing useful). This class is merely provided to be a base to inherit from. All descendants must implement at least the methods this class implements. =head1 METHODS =over 4 =item I(B<$babble>, B<$params>) This method takes the Babble object refernece in its first argument, and all the supplied parameters (as a hashref), and does whatever is necessary to return a scalar, containing the output. =cut sub output { croak "output() unimplemented in this class!"; } =pod =back =head1 AUTHOR Gergely Nagy, algernon@bonehunter.rulez.org Bugs should be reported at L. =head1 SEE ALSO Babble::Output::RSS, Babble::Output::TTk =cut 1; # arch-tag: be29e29a-cf35-4694-a21b-51553335fe4b