Last change
on this file since 229 was 4, checked in by sjboddie, 26 years ago |
Initial revision
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
651 bytes
|
Line | |
---|
1 | # base class for all the import plugins
|
---|
2 |
|
---|
3 | package BasPlug;
|
---|
4 |
|
---|
5 |
|
---|
6 | sub new {
|
---|
7 | my ($class) = @_;
|
---|
8 |
|
---|
9 | return bless {}, $class;
|
---|
10 | }
|
---|
11 |
|
---|
12 | # return 1 if this class might recurse using $pluginfo
|
---|
13 | sub is_recursive {
|
---|
14 | my $self = shift (@_);
|
---|
15 |
|
---|
16 | die "BasPlug::is_recursive function must be implemented in sub classes\n";
|
---|
17 | }
|
---|
18 |
|
---|
19 | # return 1 if processed, 0 if not processed
|
---|
20 | # Note that $base_dir might be "" and that $file might
|
---|
21 | # include directories
|
---|
22 | sub read {
|
---|
23 | my $self = shift (@_);
|
---|
24 | my ($pluginfo, $base_dir, $file, $metadata, $processor) = @_;
|
---|
25 |
|
---|
26 | die "BasPlug::read function must be implemented in sub classes\n";
|
---|
27 |
|
---|
28 | return 0; # will never get here
|
---|
29 | }
|
---|
30 |
|
---|
31 |
|
---|
32 | 1;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.