| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Finnigan::ScanEventTemplate; |
|
2
|
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
12
|
use strict; |
|
|
2
|
|
|
|
|
3
|
|
|
|
2
|
|
|
|
|
76
|
|
|
4
|
2
|
|
|
2
|
|
10
|
use warnings FATAL => qw( all ); |
|
|
2
|
|
|
|
|
4
|
|
|
|
2
|
|
|
|
|
90
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = 0.0206; |
|
6
|
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
9
|
use Finnigan; |
|
|
2
|
|
|
|
|
4
|
|
|
|
2
|
|
|
|
|
40
|
|
|
8
|
2
|
|
|
2
|
|
10
|
use base 'Finnigan::Decoder'; |
|
|
2
|
|
|
|
|
4
|
|
|
|
2
|
|
|
|
|
186
|
|
|
9
|
|
|
|
|
|
|
|
|
10
|
2
|
|
|
2
|
|
12
|
use overload ('""' => 'stringify'); |
|
|
2
|
|
|
|
|
4
|
|
|
|
2
|
|
|
|
|
24
|
|
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub decode { |
|
13
|
4
|
|
|
4
|
1
|
11
|
my ($class, $stream, $version) = @_; |
|
14
|
|
|
|
|
|
|
|
|
15
|
4
|
|
|
|
|
35
|
my @fields = ( |
|
16
|
|
|
|
|
|
|
"preamble" => ['object', 'Finnigan::ScanEventPreamble'], |
|
17
|
|
|
|
|
|
|
"presumed controller type" => ['V', 'UInt32'], |
|
18
|
|
|
|
|
|
|
"presumed controller number" => ['V', 'UInt32'], |
|
19
|
|
|
|
|
|
|
"fraction collector" => ['object', 'Finnigan::FractionCollector'], |
|
20
|
|
|
|
|
|
|
"unknown long[3]" => ['V', 'UInt32'], |
|
21
|
|
|
|
|
|
|
"unknown long[4]" => ['V', 'UInt32'], |
|
22
|
|
|
|
|
|
|
"unknown long[5]" => ['V', 'UInt32'], |
|
23
|
|
|
|
|
|
|
); |
|
24
|
|
|
|
|
|
|
|
|
25
|
4
|
|
|
|
|
25
|
my $self = Finnigan::Decoder->read($stream, \@fields, $version); |
|
26
|
4
|
|
|
|
|
12
|
bless $self, $class; |
|
27
|
4
|
|
|
|
|
27
|
return $self; |
|
28
|
|
|
|
|
|
|
} |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub preamble { |
|
31
|
19
|
|
|
19
|
1
|
586
|
shift->{data}->{"preamble"}->{value}; |
|
32
|
|
|
|
|
|
|
} |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub controllerType { |
|
35
|
1
|
|
|
1
|
1
|
7
|
shift->{data}->{"presumed controller type"}->{value}; |
|
36
|
|
|
|
|
|
|
} |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
sub controllerNumber { |
|
39
|
1
|
|
|
1
|
1
|
7
|
shift->{data}->{"presumed controller number"}->{value}; |
|
40
|
|
|
|
|
|
|
} |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
sub fraction_collector { |
|
43
|
3
|
|
|
3
|
1
|
563
|
shift->{data}->{"fraction collector"}->{value}; |
|
44
|
|
|
|
|
|
|
} |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
sub stringify { |
|
48
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
49
|
|
|
|
|
|
|
|
|
50
|
0
|
|
|
|
|
|
my $p = $self->preamble; |
|
51
|
0
|
|
|
|
|
|
my $f = $self->fraction_collector; |
|
52
|
0
|
|
|
|
|
|
return "$p $f"; |
|
53
|
|
|
|
|
|
|
} |
|
54
|
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
1; |
|
57
|
|
|
|
|
|
|
__END__ |