line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package OpenFrame; |
2
|
|
|
|
|
|
|
|
3
|
5
|
|
|
5
|
|
32
|
use strict; |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
170
|
|
4
|
5
|
|
|
5
|
|
27
|
use warnings::register; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
919
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION=3.05; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
%OpenFrame::DEBUG = ( |
9
|
|
|
|
|
|
|
ALL => 0, |
10
|
|
|
|
|
|
|
); |
11
|
|
|
|
|
|
|
|
12
|
5
|
|
|
5
|
|
11101
|
use Pipeline; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
use base qw ( Pipeline ); |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub init { |
16
|
|
|
|
|
|
|
my $self = shift; |
17
|
|
|
|
|
|
|
$self->SUPER::init(); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub debug_level { |
21
|
|
|
|
|
|
|
my $self = shift; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
## is this a set, a get, or what? |
24
|
|
|
|
|
|
|
if (@_ == 0) { |
25
|
|
|
|
|
|
|
## this is a get of ALL |
26
|
|
|
|
|
|
|
return $OpenFrame::DEBUG{ ALL }; |
27
|
|
|
|
|
|
|
} elsif (@_ == 1) { |
28
|
|
|
|
|
|
|
## this could either be a set of ALL, or a request for an individual package's |
29
|
|
|
|
|
|
|
## debug value. |
30
|
|
|
|
|
|
|
if ($_[0] =~ /\D/) { |
31
|
|
|
|
|
|
|
## we have non-digit characters, we are getting the value for a specific |
32
|
|
|
|
|
|
|
## package |
33
|
|
|
|
|
|
|
return $OpenFrame::DEBUG{ $_[0] }; |
34
|
|
|
|
|
|
|
} else { |
35
|
|
|
|
|
|
|
## these are digits, we are setting ALL |
36
|
|
|
|
|
|
|
$OpenFrame::DEBUG{ ALL } = $_[0] |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
} elsif (@_ == 2) { |
39
|
|
|
|
|
|
|
$OpenFrame::DEBUG{ shift @_ } = shift @_ ; |
40
|
|
|
|
|
|
|
} else { |
41
|
|
|
|
|
|
|
die "invalid number of parameters to &OpenFrame::debug_level"; |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
1; |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
__END__ |