line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# --8<--8<--8<--8<-- |
2
|
|
|
|
|
|
|
# |
3
|
|
|
|
|
|
|
# Copyright (C) 2007 Smithsonian Astrophysical Observatory |
4
|
|
|
|
|
|
|
# |
5
|
|
|
|
|
|
|
# This file is part of Astro::NED::Query |
6
|
|
|
|
|
|
|
# |
7
|
|
|
|
|
|
|
# Astro::NED::Query is free software: you can redistribute it and/or modify |
8
|
|
|
|
|
|
|
# it under the terms of the GNU General Public License as published by |
9
|
|
|
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or (at |
10
|
|
|
|
|
|
|
# your option) any later version. |
11
|
|
|
|
|
|
|
# |
12
|
|
|
|
|
|
|
# This program is distributed in the hope that it will be useful, |
13
|
|
|
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
14
|
|
|
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15
|
|
|
|
|
|
|
# GNU General Public License for more details. |
16
|
|
|
|
|
|
|
# |
17
|
|
|
|
|
|
|
# You should have received a copy of the GNU General Public License |
18
|
|
|
|
|
|
|
# along with this program. If not, see . |
19
|
|
|
|
|
|
|
# |
20
|
|
|
|
|
|
|
# -->8-->8-->8-->8-- |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
package Astro::NED::Query::NearPosition; |
23
|
|
|
|
|
|
|
|
24
|
1
|
|
|
1
|
|
43876
|
use 5.006; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
46
|
|
25
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
39
|
|
26
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
71
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
our $VERSION = '0.30'; |
29
|
|
|
|
|
|
|
|
30
|
1
|
|
|
1
|
|
5
|
use base qw/ Astro::NED::Query::Objects Class::Accessor::Class /; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
734
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
__PACKAGE__->mk_class_accessors( qw( Field ) ); |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__PACKAGE__->Field( { qw{ |
35
|
|
|
|
|
|
|
InCoordSys in_csys |
36
|
|
|
|
|
|
|
InEquinox in_equinox |
37
|
|
|
|
|
|
|
Longitude lon |
38
|
|
|
|
|
|
|
Latitude lat |
39
|
|
|
|
|
|
|
RA lon |
40
|
|
|
|
|
|
|
Dec lat |
41
|
|
|
|
|
|
|
Radius radius |
42
|
|
|
|
|
|
|
OutCoordSys out_csys |
43
|
|
|
|
|
|
|
OutEquinox out_equinox |
44
|
|
|
|
|
|
|
Sort obj_sort |
45
|
|
|
|
|
|
|
Format of |
46
|
|
|
|
|
|
|
ZVBreaker zv_breaker |
47
|
|
|
|
|
|
|
ListLimit list_limit |
48
|
|
|
|
|
|
|
ImageStamp img_stamp |
49
|
|
|
|
|
|
|
ZConstraint z_constraint |
50
|
|
|
|
|
|
|
ZValue1 z_value1 |
51
|
|
|
|
|
|
|
ZValue2 z_value2 |
52
|
|
|
|
|
|
|
ZUnit z_unit |
53
|
|
|
|
|
|
|
ObjTypeInclude ot_include |
54
|
|
|
|
|
|
|
NamePrefixOp nmp_op |
55
|
|
|
|
|
|
|
} }); |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
__PACKAGE__->mk_accessors( keys %{__PACKAGE__->Field}, |
58
|
|
|
|
|
|
|
); |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
__PACKAGE__->_mkMultipleAccessor ( qw/ IncObjType ExcObjType NamePrefix / ); |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
sub _init |
63
|
|
|
|
|
|
|
{ |
64
|
1
|
|
|
1
|
|
3
|
my ( $self ) = @_; |
65
|
|
|
|
|
|
|
|
66
|
1
|
|
|
|
|
14
|
$self->{_ua}->follow_link( text_regex => qr/near position/i ); |
67
|
1
|
|
|
|
|
931548
|
$self->_setupMultiple( 'option', IncObjType => qr/^in_objtypes\d+$/ ); |
68
|
1
|
|
|
|
|
14
|
$self->_setupMultiple( 'option', ExcObjType => qr/^ex_objtypes\d+$/ ); |
69
|
1
|
|
|
|
|
18
|
$self->_setupMultiple( 'option', NamePrefix => qr/^name_prefix\d+$/ ); |
70
|
|
|
|
|
|
|
|
71
|
1
|
|
|
|
|
6
|
return; |
72
|
|
|
|
|
|
|
} |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
1; |
75
|
|
|
|
|
|
|
__END__ |