line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Finnigan::Error; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
12
|
use strict; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
77
|
|
4
|
2
|
|
|
2
|
|
11
|
use warnings FATAL => qw( all ); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
125
|
|
5
|
|
|
|
|
|
|
our $VERSION = 0.0206; |
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
10
|
use Finnigan; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
43
|
|
8
|
2
|
|
|
2
|
|
11
|
use base 'Finnigan::Decoder'; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
437
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub decode { |
12
|
0
|
|
|
0
|
1
|
|
my ($class, $stream, $layout) = @_; |
13
|
|
|
|
|
|
|
|
14
|
0
|
|
|
|
|
|
my $fields = [ |
15
|
|
|
|
|
|
|
"time" => ['f<', 'Float32'], |
16
|
|
|
|
|
|
|
"message" => ['varstr', 'PascalStringWin32'], |
17
|
|
|
|
|
|
|
]; |
18
|
|
|
|
|
|
|
|
19
|
0
|
|
|
|
|
|
my $self = bless Finnigan::Decoder->read($stream, $fields), $class; |
20
|
0
|
|
|
|
|
|
return $self; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub time { |
24
|
0
|
|
|
0
|
1
|
|
shift->{data}->{"time"}->{value}; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub message { |
28
|
0
|
|
|
0
|
1
|
|
shift->{data}->{"message"}->{value}; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |
32
|
|
|
|
|
|
|
__END__ |