line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Lyskom::Info; |
2
|
1
|
|
|
1
|
|
6
|
use base qw{Net::Lyskom::Object}; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
87
|
|
3
|
|
|
|
|
|
|
|
4
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
38
|
|
5
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
26
|
|
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
5
|
use Net::Lyskom::AuxItem; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
8
|
1
|
|
|
1
|
|
5
|
use Net::Lyskom::Util qw{:all}; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
510
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 NAME |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
Net::Lyskom::Info - server information object. |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 SYNOPSIS |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
print "Conference presentations can be found in conference number ",$obj->conf_pres_conf; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 DESCRIPTION |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=over |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=item ->version() |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Server version- |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=item ->conf_pres_conf() |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
Conference with conference presentations. |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=item ->pers_pres_conf() |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
Conference with person presentations. |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=item ->motd_conf() |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
Message of the Day conference. |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=item ->kom_news_conf() |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
Conference where news about the server is posted. |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=item ->motd_of_lyskom() |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
Text with MOTD for the server. |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=item ->aux_item_list() |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
Returns a list of L objects. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=back |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=cut |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
sub new_from_stream { |
55
|
0
|
|
|
0
|
0
|
|
my $s = {}; |
56
|
0
|
|
|
|
|
|
my $class = shift; |
57
|
0
|
|
|
|
|
|
my $ref = shift; |
58
|
|
|
|
|
|
|
|
59
|
0
|
0
|
|
|
|
|
$class = ref($class) if ref($class); |
60
|
0
|
|
|
|
|
|
bless $s, $class; |
61
|
|
|
|
|
|
|
|
62
|
0
|
|
|
|
|
|
$s->{version} = shift @{$ref}; |
|
0
|
|
|
|
|
|
|
63
|
0
|
|
|
|
|
|
$s->{conf_pres_conf} = shift @{$ref}; |
|
0
|
|
|
|
|
|
|
64
|
0
|
|
|
|
|
|
$s->{pers_pres_conf} = shift @{$ref}; |
|
0
|
|
|
|
|
|
|
65
|
0
|
|
|
|
|
|
$s->{motd_conf} = shift @{$ref}; |
|
0
|
|
|
|
|
|
|
66
|
0
|
|
|
|
|
|
$s->{kom_news_conf} = @{$ref}; |
|
0
|
|
|
|
|
|
|
67
|
0
|
|
|
|
|
|
$s->{motd_of_lyskom} = @{$ref}; |
|
0
|
|
|
|
|
|
|
68
|
0
|
|
|
0
|
|
|
$s->{aux_item_list} = [parse_array_stream(sub{Net::Lyskom::AuxInfo->new_from_stream(@_)},$ref)]; |
|
0
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
|
70
|
0
|
|
|
|
|
|
return $s; |
71
|
|
|
|
|
|
|
} |
72
|
|
|
|
|
|
|
|
73
|
0
|
|
|
0
|
1
|
|
sub version {my $s = shift; return $s->{version}} |
|
0
|
|
|
|
|
|
|
74
|
0
|
|
|
0
|
1
|
|
sub conf_pres_conf {my $s = shift; return $s->{conf_pres_conf}} |
|
0
|
|
|
|
|
|
|
75
|
0
|
|
|
0
|
1
|
|
sub pers_pres_conf {my $s = shift; return $s->{pers_pres_conf}} |
|
0
|
|
|
|
|
|
|
76
|
0
|
|
|
0
|
1
|
|
sub motd_conf {my $s = shift; return $s->{motd_conf}} |
|
0
|
|
|
|
|
|
|
77
|
0
|
|
|
0
|
1
|
|
sub kom_news_conf {my $s = shift; return $s->{kom_news_conf}} |
|
0
|
|
|
|
|
|
|
78
|
0
|
|
|
0
|
1
|
|
sub motd_of_lyskom {my $s = shift; return $s->{motd_of_lyskom}} |
|
0
|
|
|
|
|
|
|
79
|
0
|
|
|
0
|
1
|
|
sub aux_item_list {my $s = shift; return @{$s->{aux_item_list}}} |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
1; |