lib/App/SeismicUnixGui/sunix/plot/lcmap.pm untested

filter: Statementstmt 0.0% 0 / 36 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 9 Podpod 0.0% 0 / 5 totaltotal 0.0% 0 / 50 CC 1 SCAR 6.9
CC
1
Cov
0%
Step
2.0
note
2.0
clear
2.0
CRAP 2.0
1 package App::SeismicUnixGui::sunix::plot::lcmap;
2  
3 =head2 SYNOPSIS
4  
5 PERL PROGRAM NAME:
6 AUTHOR: Juan Lorenzo (Perl module only)
7  
8 DATE:
9  
10 DESCRIPTION:
11  
12 Version:
13  
14 =head2 USE
15  
16 =head3 NOTES
17  
18 =head4 Examples
19  
20 =head2 SYNOPSIS
21  
22 =head3 SEISMIC UNIX NOTES
23 LCMAP - List Color Map of root window of default screen
24  
25
26  
27 Usage: lcmap
28  
29
30  
31 opt=null
32  
33
34  
35
36  
37 =head2 User's notes (Juan Lorenzo)
38 untested
39  
40 =cut
41  
42 =head2 CHANGES and their DATES
43  
44 =cut
45  
46 use Moose;
47 our $VERSION = '0.0.1';
48  
49 =head2 Import packages
50  
51 =cut
52  
53 use aliased 'App::SeismicUnixGui::misc::L_SU_global_constants';
54  
55 use App::SeismicUnixGui::misc::SeismicUnix
56 qw($in $out $on $go $to $suffix_ascii $off $suffix_su $suffix_bin);
57 use aliased 'App::SeismicUnixGui::configs::big_streams::Project_config';
58  
59 =head2 instantiation of packages
60  
61 =cut
62  
63 my $get = L_SU_global_constants->new();
64 my $Project = Project_config->new();
65 my $DATA_SEISMIC_SU = $Project->DATA_SEISMIC_SU();
66 my $DATA_SEISMIC_BIN = $Project->DATA_SEISMIC_BIN();
67 my $DATA_SEISMIC_TXT = $Project->DATA_SEISMIC_TXT();
68  
69 my $var = $get->var();
70 my $on = $var->{_on};
71 my $off = $var->{_off};
72 my $true = $var->{_true};
73 my $false = $var->{_false};
74 my $empty_string = $var->{_empty_string};
75  
76 =head2 Encapsulated
77 hash of private variables
78  
79 =cut
80  
81 my $lcmap = {
82 _opt => '',
83 _Step => '',
84 _note => '',
85  
86 };
87  
88 =head2 sub Step
89  
90 collects switches and assembles bash instructions
91 by adding the program name
92  
93 =cut
94  
95 sub Step {
96  
97 $lcmap->{_Step} = 'lcmap' . $lcmap->{_Step};
98 return ( $lcmap->{_Step} );
99  
100 }
101  
102 =head2 sub note
103  
104 collects switches and assembles bash instructions
105 by adding the program name
106  
107 =cut
108  
109 sub note {
110  
111 $lcmap->{_note} = 'lcmap' . $lcmap->{_note};
112 return ( $lcmap->{_note} );
113  
114 }
115  
116 =head2 sub clear
117  
118 =cut
119  
120 sub clear {
121  
122 $lcmap->{_opt} = '';
123 $lcmap->{_Step} = '';
124 $lcmap->{_note} = '';
125 }
126  
127 =head2 sub opt
128  
129  
130 =cut
131  
132 sub opt {
133  
134 my ( $self, $opt ) = @_;
135 # if ( $opt ne $empty_string ) {
136 #
137 # $lcmap->{_opt} = $opt;
138 # $lcmap->{_note} = $lcmap->{_note} . ' opt=' . $lcmap->{_opt};
139 # $lcmap->{_Step} = $lcmap->{_Step} . ' opt=' . $lcmap->{_opt};
140 #
141 # }
142 # else {
143 # print("lcmap, opt, missing opt,\n");
144 # }
145 }
146  
147 =head2 sub get_max_index
148  
149 max index = number of input variables -1
150
151 =cut
152  
153 sub get_max_index {
154 my ($self) = @_;
155 my $max_index = 0;
156  
157 return ($max_index);
158 }
159  
160 1;