line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package File::Find::Rule::Dicom; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# Pragmas. |
4
|
3
|
|
|
3
|
|
35668
|
use base qw(File::Find::Rule); |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
1800
|
|
5
|
3
|
|
|
3
|
|
17356
|
use strict; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
59
|
|
6
|
3
|
|
|
3
|
|
15
|
use warnings; |
|
3
|
|
|
|
|
11
|
|
|
3
|
|
|
|
|
99
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# Modules. |
9
|
3
|
|
|
3
|
|
2824
|
use Dicom::File::Detect qw(dicom_detect_file); |
|
3
|
|
|
|
|
39438
|
|
|
3
|
|
|
|
|
47
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
# Version. |
12
|
|
|
|
|
|
|
our $VERSION = 0.04; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
# Detect DICOM file. |
15
|
|
|
|
|
|
|
sub File::Find::Rule::dicom_file { |
16
|
1
|
|
|
1
|
0
|
175
|
my $file_find_rule = shift; |
17
|
1
|
|
|
|
|
6
|
my $self = $file_find_rule->_force_object; |
18
|
|
|
|
|
|
|
return $self->file->exec(sub{ |
19
|
2
|
|
|
2
|
|
936
|
my $file = shift; |
20
|
2
|
|
|
|
|
8
|
return dicom_detect_file($file); |
21
|
1
|
|
|
|
|
46
|
}); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
__END__ |