source: gs2-extensions/parallel-building/trunk/src/perllib/parallelbasebuilder.pm@ 27229

Last change on this file since 27229 was 27229, checked in by jmt12, 11 years ago

A subclass of basebuilder that includes an 'abstract' function for the indexing recipe generation

File size: 1.8 KB
Line 
1################################################################################
2#
3# parallelbasebuilder.pm -- extends the basebuilder class with functionality
4# required to support parallel indexing (namely a placeholder function for the
5# generation of indexing 'recipes')
6#
7# A component of the Greenstone digital library software from the New Zealand
8# Digital Library Project at the University of Waikato, New Zealand.
9#
10# Copyright (C) 1999 New Zealand Digital Library Project
11#
12# This program is free software; you can redistribute it and/or modify
13# it under the terms of the GNU General Public License as published by
14# the Free Software Foundation; either version 2 of the License, or
15# (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU General Public License for more details.
21#
22# You should have received a copy of the GNU General Public License
23# along with this program; if not, write to the Free Software
24# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25#
26###########################################################################
27
28package ParallelBaseBuilder;
29
30use strict;
31use warnings;
32
33use basebuilder;
34
35BEGIN
36{
37 @ParallelBaseBuilder::ISA = ('basebuilder');
38}
39
40# /** @function new()
41# * Constructor
42# */
43sub new
44{
45 my $class = shift(@_);
46 my $self = new basebuilder(@_);
47 return bless($self, $class);
48}
49# /** new() **/
50
51# /** @function prepareBuildRecipe()
52# */
53sub prepareBuildRecipe
54{
55 my ($self) = @_;
56 my $outhandle = $self->{'outhandle'};
57 print $outhandle "WARNING: prepare_build_recipe() should be implemented in subclass!!";
58}
59# /** prepareBuildRecipe() **/
60
611;
Note: See TracBrowser for help on using the repository browser.