| 1 | package Net::GPSD3::Return::WATCH; | ||||||||||||||||||||
| 2 | 2 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 3 | 2 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | 2 | ▶ | use base qw{Net::GPSD3::Return::Unknown}; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | |||||||||||||||||||||
| 6 | 2 | our $VERSION='0.14'; | |||||||||||||||||||
| 7 | |||||||||||||||||||||
| 8 | =head1 NAME | ||||||||||||||||||||
| 9 | |||||||||||||||||||||
| 10 | Net::GPSD3::Return::WATCH - Net::GPSD3 Return WATCH Object | ||||||||||||||||||||
| 11 | |||||||||||||||||||||
| 12 | =head1 SYNOPSIS | ||||||||||||||||||||
| 13 | |||||||||||||||||||||
| 14 | =head1 DESCRIPTION | ||||||||||||||||||||
| 15 | |||||||||||||||||||||
| 16 | Provides a Perl object interface to the WATCH object returned by the GPSD daemon. | ||||||||||||||||||||
| 17 | |||||||||||||||||||||
| 18 | =head1 METHODS | ||||||||||||||||||||
| 19 | |||||||||||||||||||||
| 20 | =head2 class | ||||||||||||||||||||
| 21 | |||||||||||||||||||||
| 22 | Returns the object class | ||||||||||||||||||||
| 23 | |||||||||||||||||||||
| 24 | =head2 string | ||||||||||||||||||||
| 25 | |||||||||||||||||||||
| 26 | Returns the JSON string | ||||||||||||||||||||
| 27 | |||||||||||||||||||||
| 28 | =head2 parent | ||||||||||||||||||||
| 29 | |||||||||||||||||||||
| 30 | Return the parent L<Net::GPSD3> object | ||||||||||||||||||||
| 31 | |||||||||||||||||||||
| 32 | =head2 enabled | ||||||||||||||||||||
| 33 | |||||||||||||||||||||
| 34 | =cut | ||||||||||||||||||||
| 35 | |||||||||||||||||||||
| 36 | 4 | ▶ | sub enabled { | ||||||||||||||||||
|
Subroutine
enabled: called CC=2 SCAR=8.1
Pod
documented
| |||||||||||||||||||||
| 37 | 4 | my $self=shift; | |||||||||||||||||||
| 38 | 4 | ▶ | return $self->{"enable"} || $self->{"enabled"}; #reverse once we move to the new protocol expected 3.5 | ||||||||||||||||||
|
Condition33%1/3
$self->{'enable'} || $self->{'enabled'}
MC/DC0%0/2
$self->{'enable'} || $self->{'enabled'}
$self->{'enable'}
$self->{'enabled'}
Truth table33%1/3
A || B
A= $self->{'enable'}B= $self->{'enabled'}
| |||||||||||||||||||||
| 39 | } | ||||||||||||||||||||
| 40 | |||||||||||||||||||||
| 41 | |||||||||||||||||||||
| 42 | =head2 enable (deprecated) | ||||||||||||||||||||
| 43 | |||||||||||||||||||||
| 44 | =cut | ||||||||||||||||||||
| 45 | |||||||||||||||||||||
| 46 | 2 | ▶ | sub enable {shift->enabled(@_)}; #bad protocol name | ||||||||||||||||||
|
Subroutine
enable: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||
| 47 | |||||||||||||||||||||
| 48 | =head2 json | ||||||||||||||||||||
| 49 | |||||||||||||||||||||
| 50 | =cut | ||||||||||||||||||||
| 51 | |||||||||||||||||||||
| 52 | 0 | ▶ | sub json {shift->{"json"}}; | ||||||||||||||||||
|
Subroutine
json: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||
| 53 | |||||||||||||||||||||
| 54 | =head2 nmea | ||||||||||||||||||||
| 55 | |||||||||||||||||||||
| 56 | =cut | ||||||||||||||||||||
| 57 | |||||||||||||||||||||
| 58 | 2 | ▶ | sub nmea {shift->{"nmea"}}; | ||||||||||||||||||
|
Subroutine
nmea: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||
| 59 | |||||||||||||||||||||
| 60 | =head2 raw | ||||||||||||||||||||
| 61 | |||||||||||||||||||||
| 62 | =cut | ||||||||||||||||||||
| 63 | |||||||||||||||||||||
| 64 | 1 | ▶ | sub raw {shift->{"raw"}}; | ||||||||||||||||||
|
Subroutine
raw: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||
| 65 | |||||||||||||||||||||
| 66 | =head2 scaled | ||||||||||||||||||||
| 67 | |||||||||||||||||||||
| 68 | =cut | ||||||||||||||||||||
| 69 | |||||||||||||||||||||
| 70 | 2 | ▶ | sub scaled {shift->{"scaled"}}; | ||||||||||||||||||
|
Subroutine
scaled: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||
| 71 | |||||||||||||||||||||
| 72 | =head2 timing | ||||||||||||||||||||
| 73 | |||||||||||||||||||||
| 74 | =cut | ||||||||||||||||||||
| 75 | |||||||||||||||||||||
| 76 | 2 | ▶ | sub timing {shift->{"timing"}}; | ||||||||||||||||||
|
Subroutine
timing: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||
| 77 | |||||||||||||||||||||
| 78 | =head1 BUGS | ||||||||||||||||||||
| 79 | |||||||||||||||||||||
| 80 | Log on RT and Send to gpsd-dev email list | ||||||||||||||||||||
| 81 | |||||||||||||||||||||
| 82 | =head1 SUPPORT | ||||||||||||||||||||
| 83 | |||||||||||||||||||||
| 84 | DavisNetworks.com supports all Perl applications including this package. | ||||||||||||||||||||
| 85 | |||||||||||||||||||||
| 86 | Try gpsd-dev email list | ||||||||||||||||||||
| 87 | |||||||||||||||||||||
| 88 | =head1 AUTHOR | ||||||||||||||||||||
| 89 | |||||||||||||||||||||
| 90 | Michael R. Davis | ||||||||||||||||||||
| 91 | CPAN ID: MRDVT | ||||||||||||||||||||
| 92 | STOP, LLC | ||||||||||||||||||||
| 93 | domain=>michaelrdavis,tld=>com,account=>perl | ||||||||||||||||||||
| 94 | http://www.stopllc.com/ | ||||||||||||||||||||
| 95 | |||||||||||||||||||||
| 96 | =head1 COPYRIGHT | ||||||||||||||||||||
| 97 | |||||||||||||||||||||
| 98 | This program is free software licensed under the... | ||||||||||||||||||||
| 99 | |||||||||||||||||||||
| 100 | The BSD License | ||||||||||||||||||||
| 101 | |||||||||||||||||||||
| 102 | The full text of the license can be found in the LICENSE file included with this module. | ||||||||||||||||||||
| 103 | |||||||||||||||||||||
| 104 | =head1 SEE ALSO | ||||||||||||||||||||
| 105 | |||||||||||||||||||||
| 106 | L<Net::GPSD3>, L<Net::GPSD3::Return::Unknown> | ||||||||||||||||||||
| 107 | |||||||||||||||||||||
| 108 | =cut | ||||||||||||||||||||
| 109 | |||||||||||||||||||||
| 110 | 2 | 1; | |||||||||||||||||||