line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Lyskom::ConfZInfo; |
2
|
1
|
|
|
1
|
|
6
|
use base qw{Net::Lyskom::Object}; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
78
|
|
3
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
30
|
|
4
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
27
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
6
|
use Net::Lyskom::Util qw{:all}; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
423
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 NAME |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
Net::Lyskom::ConfZInfo - conf_z_info object |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 SYNOPSIS |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
print $obj->name, " is a mailbox." if $obj->letterbox; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 DESCRIPTION |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
All methods are read-only and return simple scalars. |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head2 Methods |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=over |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=item ->name() |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=item ->conf_no() |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=item ->rd_prot() |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=item ->original() |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=item ->secret() |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=item ->letterbox() |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=back |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=cut |
41
|
|
|
|
|
|
|
|
42
|
1
|
|
|
1
|
1
|
2
|
sub name {my $s = shift; return $s->{name}} |
|
1
|
|
|
|
|
12
|
|
43
|
0
|
|
|
0
|
1
|
0
|
sub conf_no {my $s = shift; return $s->{conf_no}} |
|
0
|
|
|
|
|
0
|
|
44
|
|
|
|
|
|
|
|
45
|
0
|
|
|
0
|
1
|
0
|
sub rd_prot {my $s = shift; return $s->{rd_prot}} |
|
0
|
|
|
|
|
0
|
|
46
|
0
|
|
|
0
|
1
|
0
|
sub original {my $s = shift; return $s->{original}} |
|
0
|
|
|
|
|
0
|
|
47
|
0
|
|
|
0
|
1
|
0
|
sub secret {my $s = shift; return $s->{secret}} |
|
0
|
|
|
|
|
0
|
|
48
|
0
|
|
|
0
|
1
|
0
|
sub letterbox {my $s = shift; return $s->{letterbox}} |
|
0
|
|
|
|
|
0
|
|
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
sub new_from_stream { |
51
|
1
|
|
|
1
|
0
|
3
|
my $s = {}; |
52
|
1
|
|
|
|
|
2
|
my $class = shift; |
53
|
1
|
|
|
|
|
2
|
my $ref = shift; |
54
|
|
|
|
|
|
|
|
55
|
1
|
50
|
|
|
|
5
|
$class = ref($class) if ref($class); |
56
|
1
|
|
|
|
|
4
|
bless $s,$class; |
57
|
|
|
|
|
|
|
|
58
|
1
|
|
|
|
|
2
|
$s->{name} = shift @{$ref}; |
|
1
|
|
|
|
|
16
|
|
59
|
1
|
|
|
|
|
3
|
my $type = shift @{$ref}; |
|
1
|
|
|
|
|
4
|
|
60
|
1
|
|
|
|
|
2
|
$s->{conf_no} = shift @{$ref}; |
|
1
|
|
|
|
|
4
|
|
61
|
1
|
|
|
|
|
35
|
($s->{rd_prot},$s->{original},$s->{secret},$s->{letterbox}) |
62
|
|
|
|
|
|
|
= $type =~ /./g; |
63
|
|
|
|
|
|
|
|
64
|
1
|
|
|
|
|
7
|
return $s; |
65
|
|
|
|
|
|
|
} |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
1; |