line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package FusionInventory::Agent::XML::Query; |
2
|
|
|
|
|
|
|
|
3
|
39
|
|
|
39
|
|
25595968
|
use strict; |
|
39
|
|
|
|
|
71
|
|
|
39
|
|
|
|
|
1051
|
|
4
|
39
|
|
|
39
|
|
202
|
use warnings; |
|
39
|
|
|
|
|
78
|
|
|
39
|
|
|
|
|
1065
|
|
5
|
|
|
|
|
|
|
|
6
|
39
|
|
|
39
|
|
8557
|
use XML::TreePP; |
|
39
|
|
|
|
|
62730
|
|
|
39
|
|
|
|
|
853
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new { |
9
|
9
|
|
|
9
|
1
|
42374
|
my ($class, %params) = @_; |
10
|
|
|
|
|
|
|
|
11
|
9
|
100
|
|
|
|
49
|
die "no query parameter" unless $params{query}; |
12
|
|
|
|
|
|
|
|
13
|
8
|
|
|
|
|
17
|
my $self = {}; |
14
|
8
|
|
|
|
|
19
|
bless $self, $class; |
15
|
|
|
|
|
|
|
|
16
|
8
|
|
|
|
|
25
|
foreach my $key (keys %params) { |
17
|
25
|
|
|
|
|
95
|
$self->{h}->{uc($key)} = $params{$key}; |
18
|
|
|
|
|
|
|
} |
19
|
8
|
|
|
|
|
42
|
return $self; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub getContent { |
23
|
14
|
|
|
14
|
1
|
2312
|
my ($self) = @_; |
24
|
|
|
|
|
|
|
|
25
|
14
|
|
|
|
|
124
|
my $tpp = XML::TreePP->new(indent => 2); |
26
|
|
|
|
|
|
|
|
27
|
14
|
|
|
|
|
212
|
return $tpp->write({ REQUEST => $self->{h} }); |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
__END__ |