line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package File::Find::Rule::DWG; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
82835
|
use base qw(File::Find::Rule); |
|
3
|
|
|
|
|
18
|
|
|
3
|
|
|
|
|
1344
|
|
4
|
3
|
|
|
3
|
|
17116
|
use strict; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
98
|
|
5
|
3
|
|
|
3
|
|
15
|
use warnings; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
99
|
|
6
|
|
|
|
|
|
|
|
7
|
3
|
|
|
3
|
|
1497
|
use CAD::AutoCAD::Detect qw(detect_dwg_file); |
|
3
|
|
|
|
|
95003
|
|
|
3
|
|
|
|
|
47
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = 0.01; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
# Detect DWG. |
12
|
|
|
|
|
|
|
sub File::Find::Rule::dwg { |
13
|
1
|
|
|
1
|
0
|
270
|
my $file_find_rule = shift; |
14
|
1
|
|
|
|
|
5
|
my $self = $file_find_rule->_force_object; |
15
|
|
|
|
|
|
|
return $self->file->exec(sub{ |
16
|
4
|
|
|
4
|
|
1579
|
my $file = shift; |
17
|
4
|
|
|
|
|
15
|
return detect_dwg_file($file); |
18
|
1
|
|
|
|
|
42
|
}); |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
1; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
__END__ |