lib/App/SeismicUnixGui/sunix/plot/lprop.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::lprop;
2  
3 =head2 SYNOPSIS
4 true
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 true
22 =head3 SEISMIC UNIX NOTES
23 LPROP - List PROPerties of root window of default screen of display
24  
25  
26  
27 Usage: lprop
28  
29 opt=null
30  
31  
32  
33 =head2 User's notes (Juan Lorenzo)
34 untested
35  
36 =cut
37  
38 =head2 CHANGES and their DATEStrue
39  
40 =cut
41  
42 use Moose;
43 our $VERSION = '0.0.1';
44  
45 =head2 Import packages
46  
47 =cut
48  
49 use aliased 'App::SeismicUnixGui::misc::L_SU_global_constants';
50  
51 use App::SeismicUnixGui::misc::SeismicUnix
52 qw($in $out $on $go $to $suffix_ascii $off $suffix_su $suffix_bin);
53 use aliased 'App::SeismicUnixGui::configs::big_streams::Project_config';
54  
55 =head2 instantiation of packages
56  
57 =cut
58  
59 my $get = L_SU_global_constants->new();
60 my $Project = Project_config->new();
61 my $DATA_SEISMIC_SU = $Project->DATA_SEISMIC_SU();
62 my $DATA_SEISMIC_BIN = $Project->DATA_SEISMIC_BIN();
63 my $DATA_SEISMIC_TXT = $Project->DATA_SEISMIC_TXT();
64  
65 my $var = $get->var();
66 my $on = $var->{_on};
67 my $off = $var->{_off};
68 my $true = $var->{_true};
69 my $false = $var->{_false};
70 my $empty_string = $var->{_empty_string};
71  
72 =head2 Encapsulated
73 hash of private variables
74  
75 =cut
76  
77 my $lprop = {
78 _opt => '',
79 _Step => '',
80 _note => '',
81  
82 };
83  
84 =head2 sub Step
85  
86 collects switches and assembles bash instructions
87 by adding the program name
88  
89 =cut
90  
91 sub Step {
92  
93 $lprop->{_Step} = 'lprop' . $lprop->{_Step};
94 return ( $lprop->{_Step} );
95  
96 }
97  
98 =head2 sub note
99  
100 collects switches and assembles bash instructions
101 by adding the program name
102  
103 =cut
104  
105 sub note {
106  
107 $lprop->{_note} = 'lprop' . $lprop->{_note};
108 return ( $lprop->{_note} );
109  
110 }
111  
112 =head2 sub clear
113  
114 =cut
115  
116 sub clear {
117  
118 $lprop->{_opt} = '';
119 $lprop->{_Step} = '';
120 $lprop->{_note} = '';
121 }
122  
123 =head2 sub opt
124  
125  
126 =cut
127  
128 sub opt {
129  
130 my ( $self, $opt ) = @_;
131 # if ( $opt ne $empty_string ) {
132 #
133 # $lprop->{_opt} = $opt;
134 # $lprop->{_note} = $lprop->{_note} . ' opt=' . $lprop->{_opt};
135 # $lprop->{_Step} = $lprop->{_Step} . ' opt=' . $lprop->{_opt};
136 #
137 # }
138 # else {
139 # print("lprop, opt, missing opt,\n");
140 # }
141 }
142  
143 =head2 sub get_max_index
144  
145 max index = number of input variables -1
146
147 =cut
148  
149 sub get_max_index {
150 my ($self) = @_;
151 my $max_index = 0;
152  
153 return ($max_index);
154 }
155  
156 1;