line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package HTML::WebMake::DataSourceBase; |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
5
|
use HTML::WebMake::DataSource; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
31
|
|
7
|
1
|
|
|
1
|
|
5
|
use Carp; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
54
|
|
8
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
29
|
|
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
|
|
349
|
use vars qw{ |
11
|
|
|
|
|
|
|
@ISA |
12
|
1
|
|
|
1
|
|
5
|
}; |
|
1
|
|
|
|
|
11
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
########################################################################### |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub new { |
20
|
0
|
|
|
0
|
0
|
|
my $class = shift; |
21
|
0
|
|
0
|
|
|
|
$class = ref($class) || $class; |
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
|
|
|
my ($parent) = @_; |
24
|
0
|
|
|
|
|
|
my $self = { %$parent }; |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
|
|
|
$self->{parent} = $parent; |
27
|
|
|
|
|
|
|
|
28
|
0
|
|
|
|
|
|
bless ($self, $class); |
29
|
0
|
|
|
|
|
|
$self; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub as_string { |
33
|
0
|
|
|
0
|
0
|
|
my ($self) = @_; |
34
|
0
|
|
|
|
|
|
$self->{parent}->as_string(); |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
# ------------------------------------------------------------------------- |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
sub add { |
40
|
0
|
|
|
0
|
0
|
|
my ($self) = @_; |
41
|
0
|
|
|
|
|
|
croak "Unimplemented interface in ".__FILE__; |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
# ------------------------------------------------------------------------- |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
sub get_location_url { |
47
|
0
|
|
|
0
|
0
|
|
my ($self, $location) = @_; |
48
|
0
|
|
|
|
|
|
warn " tag not supported by this data source: $location\n"; |
49
|
0
|
|
|
|
|
|
""; |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
# ------------------------------------------------------------------------- |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
sub get_location_contents { |
55
|
0
|
|
|
0
|
0
|
|
my ($self, $location) = @_; |
56
|
0
|
|
|
|
|
|
croak "Unimplemented interface in ".__FILE__; |
57
|
|
|
|
|
|
|
} |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
# ------------------------------------------------------------------------- |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
sub get_location_mod_time { |
62
|
0
|
|
|
0
|
0
|
|
my ($self, $location) = @_; |
63
|
0
|
|
|
|
|
|
croak "Unimplemented interface in ".__FILE__; |
64
|
|
|
|
|
|
|
} |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
1; |