line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Finnigan::RawFileInfo; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
11
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
76
|
|
4
|
2
|
|
|
2
|
|
10
|
use warnings FATAL => qw( all ); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
93
|
|
5
|
|
|
|
|
|
|
our $VERSION = 0.0206; |
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
12
|
use Finnigan; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
48
|
|
8
|
2
|
|
|
2
|
|
10
|
use base 'Finnigan::Decoder'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
174
|
|
9
|
|
|
|
|
|
|
|
10
|
2
|
|
|
2
|
|
11
|
use overload ('""' => 'stringify'); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
19
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub decode { |
13
|
1
|
|
|
1
|
1
|
3
|
my ($class, $stream, $version) = @_; |
14
|
|
|
|
|
|
|
|
15
|
1
|
|
|
|
|
8
|
my $fields = [ |
16
|
|
|
|
|
|
|
"preamble" => ['object', 'Finnigan::RawFileInfoPreamble'], |
17
|
|
|
|
|
|
|
"label heading[1]" => ['varstr', 'PascalStringWin32'], |
18
|
|
|
|
|
|
|
"label heading[2]" => ['varstr', 'PascalStringWin32'], |
19
|
|
|
|
|
|
|
"label heading[3]" => ['varstr', 'PascalStringWin32'], |
20
|
|
|
|
|
|
|
"label heading[4]" => ['varstr', 'PascalStringWin32'], |
21
|
|
|
|
|
|
|
"label heading[5]" => ['varstr', 'PascalStringWin32'], |
22
|
|
|
|
|
|
|
"unknown text" => ['varstr', 'PascalStringWin32'], |
23
|
|
|
|
|
|
|
]; |
24
|
|
|
|
|
|
|
|
25
|
1
|
|
|
|
|
4
|
my $self = Finnigan::Decoder->read($stream, $fields, $version); |
26
|
|
|
|
|
|
|
|
27
|
1
|
|
|
|
|
6
|
return bless $self, $class; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub preamble { |
31
|
6
|
|
|
6
|
1
|
496
|
shift->{data}->{preamble}->{value}; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub stringify { |
35
|
1
|
|
|
1
|
1
|
7
|
shift->preamble->stringify; |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
1; |
39
|
|
|
|
|
|
|
__END__ |