line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Image::Processor::Base;
|
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
6
|
use strict;
|
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
422
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
sub new { |
6
|
0
|
|
|
0
|
0
|
|
my ($class) = shift; |
7
|
0
|
|
|
|
|
|
my $self = {}; |
8
|
0
|
|
|
|
|
|
bless $self , $class; |
9
|
0
|
|
|
|
|
|
return $self; |
10
|
|
|
|
|
|
|
}
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub running_in {
|
13
|
0
|
|
|
0
|
0
|
|
my ($self,$set) = @_;
|
14
|
0
|
0
|
|
|
|
|
return $self->{'running_in'} if !$set;
|
15
|
0
|
|
|
|
|
|
$self->{'running_in'} = $set;
|
16
|
|
|
|
|
|
|
}
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub cdrom {
|
19
|
0
|
|
|
0
|
0
|
|
my ($self,$set) = @_;
|
20
|
0
|
0
|
|
|
|
|
return $self->{'cdrom'} if !$set;
|
21
|
0
|
|
|
|
|
|
$set = $self->trim_path($set);
|
22
|
0
|
|
|
|
|
|
$self->{'cdrom'} = $set;
|
23
|
|
|
|
|
|
|
}
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub trim_path {
|
26
|
0
|
|
|
0
|
0
|
|
my ($self,$path) = @_;
|
27
|
0
|
|
|
|
|
|
$path =~ s![/\\]$!!;
|
28
|
0
|
|
|
|
|
|
return $path;
|
29
|
|
|
|
|
|
|
}
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub output_directory {
|
32
|
0
|
|
|
0
|
0
|
|
my ($self,$set) = @_;
|
33
|
0
|
0
|
|
|
|
|
return $self->{'output_directory'} if !$set;
|
34
|
0
|
|
|
|
|
|
$self->{'output_directory'} = $set;
|
35
|
|
|
|
|
|
|
}
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub source_directory {
|
38
|
0
|
|
|
0
|
0
|
|
my ($self,$set) = @_;
|
39
|
0
|
0
|
|
|
|
|
return $self->{'source_directory'} if !$set;
|
40
|
0
|
|
|
|
|
|
$self->{'source_directory'} = $set;
|
41
|
|
|
|
|
|
|
}
|
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
sub error {
|
44
|
0
|
|
|
0
|
0
|
|
my ($self,$message) = @_;
|
45
|
0
|
|
|
|
|
|
warn $message;
|
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
}
|
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
sub graceful_exit {
|
50
|
0
|
|
|
0
|
0
|
|
my ($self,$message) = @_;
|
51
|
0
|
|
|
|
|
|
die "Immage::Processor could not complete because: $message\n";
|
52
|
|
|
|
|
|
|
}
|
53
|
|
|
|
|
|
|
1;
|
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
__END__
|