line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package File::Find::Rule::Dicom; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# Pragmas. |
4
|
4
|
|
|
4
|
|
91564
|
use base qw(File::Find::Rule); |
|
4
|
|
|
|
|
17
|
|
|
4
|
|
|
|
|
3911
|
|
5
|
4
|
|
|
4
|
|
42683
|
use strict; |
|
4
|
|
|
|
|
11
|
|
|
4
|
|
|
|
|
143
|
|
6
|
4
|
|
|
4
|
|
22
|
use warnings; |
|
4
|
|
|
|
|
577
|
|
|
4
|
|
|
|
|
164
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# Modules. |
9
|
4
|
|
|
4
|
|
4744
|
use Dicom::File::Detect qw(dicom_detect_file); |
|
4
|
|
|
|
|
83945
|
|
|
4
|
|
|
|
|
76
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
# Version. |
12
|
|
|
|
|
|
|
our $VERSION = 0.03; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
# Detect DICOM file. |
15
|
|
|
|
|
|
|
sub File::Find::Rule::dicom_file { |
16
|
1
|
|
|
1
|
0
|
227
|
my $file_find_rule = shift; |
17
|
1
|
|
|
|
|
7
|
my $self = $file_find_rule->_force_object; |
18
|
|
|
|
|
|
|
return $self->file->exec(sub{ |
19
|
2
|
|
|
2
|
|
1161
|
my $file = shift; |
20
|
2
|
|
|
|
|
9
|
return dicom_detect_file($file); |
21
|
1
|
|
|
|
|
69
|
}); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
__END__ |