line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Astro::App::Satpass2::FormatValue::Formatter; |
2
|
|
|
|
|
|
|
|
3
|
11
|
|
|
11
|
|
289
|
use 5.008; |
|
11
|
|
|
|
|
46
|
|
4
|
|
|
|
|
|
|
|
5
|
11
|
|
|
11
|
|
85
|
use strict; |
|
11
|
|
|
|
|
38
|
|
|
11
|
|
|
|
|
232
|
|
6
|
11
|
|
|
11
|
|
66
|
use warnings; |
|
11
|
|
|
|
|
29
|
|
|
11
|
|
|
|
|
352
|
|
7
|
|
|
|
|
|
|
|
8
|
11
|
|
|
11
|
|
6872
|
use Astro::App::Satpass2::FormatValue; |
|
11
|
|
|
|
|
46
|
|
|
11
|
|
|
|
|
519
|
|
9
|
11
|
|
|
11
|
|
83
|
use Astro::App::Satpass2::Utils qw{ has_method @CARP_NOT }; |
|
11
|
|
|
|
|
41
|
|
|
11
|
|
|
|
|
2860
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our $VERSION = '0.051'; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub new { |
14
|
1
|
|
|
1
|
1
|
4
|
my ( $class, $info ) = @_; |
15
|
|
|
|
|
|
|
|
16
|
1
|
|
|
|
|
7
|
return bless { |
17
|
|
|
|
|
|
|
info => $info, |
18
|
|
|
|
|
|
|
code => Astro::App::Satpass2::FormatValue |
19
|
|
|
|
|
|
|
->__make_formatter_code( $info ), |
20
|
|
|
|
|
|
|
}, $class; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub code { |
25
|
1
|
|
|
1
|
1
|
3
|
my ( $self ) = @_; |
26
|
1
|
|
|
|
|
6
|
return $self->{code}; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub name { |
30
|
3
|
|
|
3
|
1
|
7
|
my ( $self ) = @_; |
31
|
3
|
|
|
|
|
12
|
return $self->{info}{name}; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
__END__ |