line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package DWH_File::ID_Mill; |
2
|
|
|
|
|
|
|
|
3
|
9
|
|
|
9
|
|
54
|
use warnings; |
|
9
|
|
|
|
|
18
|
|
|
9
|
|
|
|
|
304
|
|
4
|
9
|
|
|
9
|
|
49
|
use strict; |
|
9
|
|
|
|
|
17
|
|
|
9
|
|
|
|
|
315
|
|
5
|
9
|
|
|
9
|
|
52
|
use vars qw( @ISA $VERSION ); |
|
9
|
|
|
|
|
15
|
|
|
9
|
|
|
|
|
3311
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
@ISA = qw( ); |
8
|
|
|
|
|
|
|
$VERSION = 0.01; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub new { |
11
|
39
|
|
|
39
|
0
|
145
|
my ( $this, $kernel, $property ) = @_; |
12
|
39
|
|
33
|
|
|
244
|
my $class = ref $this || $this; |
13
|
39
|
|
|
|
|
155
|
my $current = $kernel->fetch_property( $property ); |
14
|
39
|
|
100
|
|
|
213
|
$current ||= 0; |
15
|
39
|
|
|
|
|
313
|
my $self = { current => $current, |
16
|
|
|
|
|
|
|
kernel => $kernel, |
17
|
|
|
|
|
|
|
property => $property, |
18
|
|
|
|
|
|
|
}; |
19
|
39
|
|
|
|
|
149
|
bless $self, $class; |
20
|
39
|
|
|
|
|
274
|
return $self; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub next { |
24
|
58
|
|
|
58
|
0
|
110
|
$_[ 0 ]->{ current }++; |
25
|
58
|
|
|
|
|
1130
|
return $_[ 0 ]->{ current }; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub save { |
29
|
39
|
|
|
39
|
0
|
68
|
my ( $self ) = @_; |
30
|
|
|
|
|
|
|
$self->{ kernel }->store_property( $self->{ property }, |
31
|
39
|
|
|
|
|
278
|
$self->{ current } ); |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
__END__ |