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::NearName; |
23
|
|
|
|
|
|
|
|
24
|
1
|
|
|
1
|
|
45304
|
use 5.006; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
38
|
|
25
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34
|
|
26
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
37
|
|
27
|
|
|
|
|
|
|
|
28
|
1
|
|
|
1
|
|
5
|
use base qw/ Astro::NED::Query::Objects Class::Accessor::Class /; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
835
|
|
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
our $VERSION = '0.30'; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
__PACKAGE__->mk_class_accessors( qw( Field ) ); |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__PACKAGE__->Field( { qw{ |
35
|
|
|
|
|
|
|
ObjName objname |
36
|
|
|
|
|
|
|
Radius radius |
37
|
|
|
|
|
|
|
CoordSys out_csys |
38
|
|
|
|
|
|
|
Equinox out_equinox |
39
|
|
|
|
|
|
|
Sort obj_sort |
40
|
|
|
|
|
|
|
Format of |
41
|
|
|
|
|
|
|
ZVBreaker zv_breaker |
42
|
|
|
|
|
|
|
ListLimit list_limit |
43
|
|
|
|
|
|
|
ImageStamp img_stamp |
44
|
|
|
|
|
|
|
ZConstraint z_constraint |
45
|
|
|
|
|
|
|
ZValue1 z_value1 |
46
|
|
|
|
|
|
|
ZValue2 z_value2 |
47
|
|
|
|
|
|
|
ZUnit z_unit |
48
|
|
|
|
|
|
|
ObjTypeInclude ot_include |
49
|
|
|
|
|
|
|
NamePrefixOp nmp_op |
50
|
|
|
|
|
|
|
} } ); |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
__PACKAGE__->mk_accessors( keys %{__PACKAGE__->Field}, |
53
|
|
|
|
|
|
|
); |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
__PACKAGE__->_mkMultipleAccessor ( qw/ IncObjType ExcObjType NamePrefix / ); |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
sub _init |
58
|
|
|
|
|
|
|
{ |
59
|
1
|
|
|
1
|
|
3
|
my ( $self ) = @_; |
60
|
|
|
|
|
|
|
|
61
|
1
|
|
|
|
|
15
|
$self->{_ua}->follow_link( text_regex => qr/near name/i ); |
62
|
1
|
|
|
|
|
945503
|
$self->_setupMultiple( 'option', IncObjType => qr/^in_objtypes\d+$/ ); |
63
|
1
|
|
|
|
|
14
|
$self->_setupMultiple( 'option', ExcObjType => qr/^ex_objtypes\d+$/ ); |
64
|
1
|
|
|
|
|
15
|
$self->_setupMultiple( 'option', NamePrefix => qr/^name_prefix\d+$/ ); |
65
|
|
|
|
|
|
|
|
66
|
1
|
|
|
|
|
6
|
return; |
67
|
|
|
|
|
|
|
} |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
1; |
71
|
|
|
|
|
|
|
__END__ |