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 |
|
---|
28 | package parallelbasebuilder;
|
---|
29 |
|
---|
30 | use strict;
|
---|
31 | use warnings;
|
---|
32 |
|
---|
33 | use basebuilder;
|
---|
34 |
|
---|
35 | BEGIN
|
---|
36 | {
|
---|
37 | @parallelbasebuilder::ISA = ('basebuilder');
|
---|
38 | }
|
---|
39 |
|
---|
40 | # /** @function new()
|
---|
41 | # * Constructor
|
---|
42 | # */
|
---|
43 | sub new
|
---|
44 | {
|
---|
45 | my $class = shift(@_);
|
---|
46 | my $self = new basebuilder(@_);
|
---|
47 | return bless($self, $class);
|
---|
48 | }
|
---|
49 | # /** new() **/
|
---|
50 |
|
---|
51 | # /** @function prepareIndexRecipe()
|
---|
52 | # * @param $self
|
---|
53 | # * @author jmt12
|
---|
54 | # */
|
---|
55 | sub prepareIndexRecipe
|
---|
56 | {
|
---|
57 | my ($self) = @_;
|
---|
58 | my $outhandle = $self->{'outhandle'};
|
---|
59 | print $outhandle "WARNING: prepareIndexRecipe() should be implemented in subclass!!";
|
---|
60 | }
|
---|
61 | # /** prepareIndexRecipe() **/
|
---|
62 |
|
---|
63 | 1;
|
---|