« lib/App/SeismicUnixGui/developer/code/sunix/sudoc2pm_pt2.pl
↑ Summary
lib/App/SeismicUnixGui/developer/code/sunix/sunix_package_encapsulated.pm »
| 1 | package App::SeismicUnixGui::developer::code::sunix::sunix_package_declaration; | ||
| 2 | use Moose; | ||
| 3 | our $VERSION = '0.0.1'; | ||
| 4 | |||
| 5 | my @lines; | ||
| 6 | |||
| 7 | =head2 declaration variables | ||
| 8 | |||
| 9 | =cut | ||
| 10 | |||
| 11 | my $sunix_package_declaration = { | ||
| 12 | _package_name => '', | ||
| 13 | _subroutine_name => '', | ||
| 14 | _param_names => '', | ||
| 15 | }; | ||
| 16 | |||
| 17 | =head2 sub make_section | ||
| 18 | |||
| 19 | print("sunix_package_declaration,get_section,@lines\n"); | ||
| 20 | "\t".'my $get = L_SU_global_constants->new();'."\n\n". | ||
| 21 | =cut | ||
| 22 | |||
| 23 | sub make_section { | ||
| 24 | |||
| 25 | my ($self) = @_; | ||
| 26 | |||
| 27 | $lines[0] = | ||
| 28 | 'my $get' . "\t\t\t\t\t" . '= L_SU_global_constants->new();' . "\n"; | ||
| 29 | $lines[1] = 'my $Project' . "\t\t\t\t" . '= Project_config->new();' . "\n"; | ||
| 30 | $lines[2] = | ||
| 31 | 'my $DATA_SEISMIC_SU' . "\t\t" . '= $Project->DATA_SEISMIC_SU();' . "\n"; | ||
| 32 | $lines[3] = | ||
| 33 | 'my $DATA_SEISMIC_BIN' . "\t" . '= $Project->DATA_SEISMIC_BIN();' . "\n"; | ||
| 34 | $lines[4] = 'my $DATA_SEISMIC_TXT' . "\t" | ||
| 35 | . '= $Project->DATA_SEISMIC_TXT();' . "\n\n"; | ||
| 36 | $lines[5] = | ||
| 37 | 'my $PS_SEISMIC ' . "\t" . '= $Project->PS_SEISMIC();' . "\n\n"; | ||
| 38 | $lines[6] = 'my $var' . "\t\t\t\t" . '= $get->var();' . "\n"; | ||
| 39 | $lines[7] = 'my $on' . "\t\t\t\t" . '= $var->{_on};' . "\n"; | ||
| 40 | $lines[8] = 'my $off' . "\t\t\t\t" . '= $var->{_off};' . "\n"; | ||
| 41 | $lines[9] = 'my $true' . "\t\t\t" . '= $var->{_true};' . "\n"; | ||
| 42 | $lines[10] = 'my $false' . "\t\t\t" . '= $var->{_false};' . "\n"; | ||
| 43 | $lines[11] = 'my $empty_string' . "\t" . '= $var->{_empty_string};' . "\n"; | ||
| 44 | |||
| 45 | return ( \@lines ); | ||
| 46 | } | ||
| 47 | |||
| 48 | =head2 sub get_section | ||
| 49 | |||
| 50 | print("sunix_package_declaration,get_section,@lines\n"); | ||
| 51 | |||
| 52 | =cut | ||
| 53 | |||
| 54 | sub get_section { | ||
| 55 | my ($self) = @_; | ||
| 56 | return ( \@lines ); | ||
| 57 | } | ||
| 58 | |||
| 59 | 1; |