lib/App/SeismicUnixGui/sunix/data/wtuncomp.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::data::wtuncomp;
2  
3 =head2 SYNOPSIS
4  
5 PERL PROGRAM NAME:
6  
7 AUTHOR: Juan Lorenzo (Perl module only)
8  
9 DATE:
10  
11 DESCRIPTION:
12  
13 Version:
14  
15 =head2 USE
16  
17 =head3 NOTES
18  
19 =head4 Examples
20  
21 =head2 SYNOPSIS
22  
23 =head3 SEISMIC UNIX NOTES
24 WTUNCOMP - UNCOMPression of WT compressed data
25  
26  
27  
28 wtuncomp < stdin > sdtout
29  
30  
31  
32 Required Parameters:
33  
34 none
35  
36 Optional Parameters:
37  
38 none
39  
40  
41  
42 opt=null
43  
44  
45  
46  
47  
48 Author: CWP: Tong Chen, 1995
49  
50  
51  
52  
53  
54 =head2 User's notes (Juan Lorenzo)
55 untested
56  
57 =cut
58  
59  
60 =head2 CHANGES and their DATES
61  
62 =cut
63  
64 use Moose;
65 our $VERSION = '0.0.1';
66  
67  
68 =head2 Import packages
69  
70 =cut
71  
72 use aliased 'App::SeismicUnixGui::misc::L_SU_global_constants';
73  
74 use App::SeismicUnixGui::misc::SeismicUnix qw($in $out $on $go $to $suffix_ascii $off $suffix_su $suffix_bin);
75 use aliased 'App::SeismicUnixGui::configs::big_streams::Project_config';
76  
77  
78 =head2 instantiation of packages
79  
80 =cut
81  
82 my $get = L_SU_global_constants->new();
83 my $Project = Project_config->new();
84 my $DATA_SEISMIC_SU = $Project->DATA_SEISMIC_SU();
85 my $DATA_SEISMIC_BIN = $Project->DATA_SEISMIC_BIN();
86 my $DATA_SEISMIC_TXT = $Project->DATA_SEISMIC_TXT();
87  
88 my $var = $get->var();
89 my $on = $var->{_on};
90 my $off = $var->{_off};
91 my $true = $var->{_true};
92 my $false = $var->{_false};
93 my $empty_string = $var->{_empty_string};
94  
95 =head2 Encapsulated
96 hash of private variables
97  
98 =cut
99  
100 my $wtuncomp = {
101 _opt => '',
102 _Step => '',
103 _note => '',
104  
105 };
106  
107 =head2 sub Step
108  
109 collects switches and assembles bash instructions
110 by adding the program name
111  
112 =cut
113  
114 sub Step {
115  
116 $wtuncomp->{_Step} = 'wtuncomp'.$wtuncomp->{_Step};
117 return ( $wtuncomp->{_Step} );
118  
119 }
120  
121  
122 =head2 sub note
123  
124 collects switches and assembles bash instructions
125 by adding the program name
126  
127 =cut
128  
129 sub note {
130  
131 $wtuncomp->{_note} = 'wtuncomp'.$wtuncomp->{_note};
132 return ( $wtuncomp->{_note} );
133  
134 }
135  
136  
137  
138 =head2 sub clear
139  
140 =cut
141  
142 sub clear {
143  
144 $wtuncomp->{_opt} = '';
145 $wtuncomp->{_Step} = '';
146 $wtuncomp->{_note} = '';
147 }
148  
149  
150 =head2 sub opt
151  
152  
153 =cut
154  
155 sub opt {
156  
157 my ( $self,$opt ) = @_;
158 # if ( $opt ne $empty_string ) {
159 #
160 # $wtuncomp->{_opt} = $opt;
161 # $wtuncomp->{_note} = $wtuncomp->{_note}.' opt='.$wtuncomp->{_opt};
162 # $wtuncomp->{_Step} = $wtuncomp->{_Step}.' opt='.$wtuncomp->{_opt};
163 #
164 # } else {
165 # print("wtuncomp, opt, missing opt,\n");
166 # }
167 }
168  
169  
170 =head2 sub get_max_index
171  
172 max index = number of input variables -1
173
174 =cut
175
176 sub get_max_index {
177 my ($self) = @_;
178 my $max_index = 0;
179  
180 return($max_index);
181 }
182
183
184 1;