lib/Ekahau/Response/MapImage.pm

filter: Statementstmt 100% 19 / 19 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 80.0% 4 / 5 totaltotal 94.1% 32 / 34 CC 2 SCAR 2.3
CC
2
Cov
95%
init
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« lib/Ekahau/Response/DeviceList.pm ↑ Summary
1 package Ekahau::Response::MapImage;
2 15 ▶use base 'Ekahau::Response'; our $VERSION=Ekahau::Response::VERSION;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 # Written by Scott Gifford <gifford@umich.edu>
5 # Copyright (C) 2004 The Regents of the University of Michigan.
6 # See the file LICENSE included with the distribution for license
7 # information.
8  
9 15 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 15 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 =head1 NAME
13  
14 Ekahau::Response::MapImage - Contains a map of a location
15  
16 =head1 SYNOPSIS
17  
18 Ekahau stores a map of the areas it can find locations in, and this
19 object contains one of those maps. The maps are simply a bitmap image
20 of the area, and are encoded in PNG format.
21  
22 =head1 DESCRIPTION
23  
24 =head2 Constructor
25  
26 Generally you will not want to construct these objects yourself; they
27 are created by L<Ekahau::Response|Ekahau::Response>, and use its constructor.
28  
29 =head2 Methods
30  
31 =cut
32  
33 # Internal
34 sub init
35 4 ▶{
Subroutine init: called CC=2 SCAR=7.6
Pod undocumented
36 warn "Created Ekahau::Response::MapImage object\n"
37 4 ▶ if ($ENV{VERBOSE});
Branch: 1 branch
BranchTrueFalseTotal
if $ENV{"VERBOSE"} 0 4 4
38 }
39  
40 =head3 map_size ( )
41  
42 Returns the size of the map image in bytes.
43  
44 =cut
45  
46 sub map_size ( )
47 3 ▶{
Subroutine map_size: called CC=1 SCAR=0.0
Pod documented
48 3 my $self = shift;
49 3 return $self->{params}{size};
50 }
51  
52 =head3 map_type ( )
53  
54 Returns the data type of the map image. At the time of this writing,
55 this is always C<png>.
56  
57 =cut
58  
59 sub map_type
60 3 ▶{
Subroutine map_type: called CC=1 SCAR=0.0
Pod documented
61 3 my $self = shift;
62 3 return $self->{params}{type};
63 }
64  
65 =head3 map_image ( )
66  
67 Returns the data for this map, in PNG format.
68  
69 =cut
70  
71 sub map_image
72 3 ▶{
Subroutine map_image: called CC=1 SCAR=0.0
Pod documented
73 3 my $self = shift;
74 3 return $self->{params}{data};
75 }
76  
77 =head3 type ( )
78  
79 Returns the string I<MapImage>, to identify the type of this object.
80  
81 =cut
82  
83 sub type
84 4 ▶{
Subroutine type: called CC=1 SCAR=0.0
Pod documented
85 4 'MapImage';
86 }
87  
88 =head1 AUTHOR
89  
90 Scott Gifford E<lt>gifford@umich.eduE<gt>, E<lt>sgifford@suspectclass.comE<gt>
91  
92 Copyright (C) 2005 The Regents of the University of Michigan.
93  
94 See the file LICENSE included with the distribution for license
95 information.
96  
97  
98 =head1 SEE ALSO
99  
100 L<Ekahau::Response|Ekahau::Response>, L<Ekahau::Base|Ekahau::Base>.
101  
102 =cut
103  
104 15 1;
« lib/Ekahau/Response/DeviceList.pm ↑ Summary