| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
|
2
|
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package BACnet::ServiceRequestSequences::Utils; |
|
4
|
|
|
|
|
|
|
|
|
5
|
27
|
|
|
27
|
|
197
|
use warnings; |
|
|
27
|
|
|
|
|
74
|
|
|
|
27
|
|
|
|
|
1576
|
|
|
6
|
27
|
|
|
27
|
|
184
|
use strict; |
|
|
27
|
|
|
|
|
96
|
|
|
|
27
|
|
|
|
|
5761
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
require BACnet::DataTypes::SequenceValue; |
|
9
|
|
|
|
|
|
|
require BACnet::DataTypes::Enum; |
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
require BACnet::DataTypes::Bone; |
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
our $error_type_skeleton = [ |
|
14
|
|
|
|
|
|
|
BACnet::DataTypes::Bone->construct( |
|
15
|
|
|
|
|
|
|
tag => 0, |
|
16
|
|
|
|
|
|
|
name => 'error_class', |
|
17
|
|
|
|
|
|
|
dt => 'BACnet::DataTypes::Enum' |
|
18
|
|
|
|
|
|
|
), |
|
19
|
|
|
|
|
|
|
BACnet::DataTypes::Bone->construct( |
|
20
|
|
|
|
|
|
|
tag => 1, |
|
21
|
|
|
|
|
|
|
name => 'error_code', |
|
22
|
|
|
|
|
|
|
dt => 'BACnet::DataTypes::Enum' |
|
23
|
|
|
|
|
|
|
), |
|
24
|
|
|
|
|
|
|
]; |
|
25
|
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub _error_type { |
|
27
|
3
|
|
|
3
|
|
21
|
my %args = ( |
|
28
|
|
|
|
|
|
|
error_class => undef, |
|
29
|
|
|
|
|
|
|
error_code => undef, |
|
30
|
|
|
|
|
|
|
@_, |
|
31
|
|
|
|
|
|
|
); |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
return BACnet::DataTypes::SequenceValue->construct( |
|
34
|
|
|
|
|
|
|
[ |
|
35
|
|
|
|
|
|
|
[ |
|
36
|
|
|
|
|
|
|
'error_class', |
|
37
|
|
|
|
|
|
|
BACnet::DataTypes::Enum->construct( $args{error_class}, 0x00 ) |
|
38
|
|
|
|
|
|
|
], |
|
39
|
|
|
|
|
|
|
[ |
|
40
|
|
|
|
|
|
|
'error_code', |
|
41
|
3
|
|
|
|
|
33
|
BACnet::DataTypes::Enum->construct( $args{error_code}, 0x01 ) |
|
42
|
|
|
|
|
|
|
] |
|
43
|
|
|
|
|
|
|
], |
|
44
|
|
|
|
|
|
|
); |
|
45
|
|
|
|
|
|
|
} |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
1; |