G::System FuncD
Included librariesPackage variablesGeneral documentationMethods
Package variables
No package variables defined.
Included modules
G::Messenger
G::System::BAS
G::System::CHI
G::System::COMGA
G::System::GEMS
G::System::ReL8
SelfLoader
SubOpt
Inherit
Exporter
Synopsis
No synopsis!
Description
No description!
Methods
funcD
No description
Code
Methods description
None available.
Methods code
funcDdescriptionprevnextTop
sub funcD {
    &opt_default();
    my @args=opt_get(@_);

    my $gcffile=shift @args;
    my $cf;
    my $Sysname;
    my @fname;
    my %data;
    my %instance;
    my $new;
    my $tmp;
    my $tmp2;
    my $i;

    open(FILE, "$gcffile");
    while(<FILE>){
	if(/\>Engine\:/){
	    @fname=split(/:/);
	    $fname[1]=~tr/ \n//d;
last; } } close(FILE); $Sysname=$fname[1]; $cf=&{$Sysname.'_parser'}($gcffile); %instance=(@args); foreach(keys(%{$cf})){ if($_ =~ /^G(\d+)/){ unless(defined($instance{$cf->{$_}->{instance}})){ $instance{$cf->{$_}->{instance}}=$cf->{$_}->{data}; } } } foreach(keys(%instance)){ $i++; $cf->{G.$i}->{instance}="$_"; $cf->{G.$i}->{data}="$instance{$_}"; } foreach $tmp (keys(%{$cf})){ next if($tmp eq "Order"); foreach $tmp2 (keys(%{$cf->{$tmp}})){ %data=(@{opt_val("$tmp")}); foreach(keys(%data)){ if($tmp2 eq $_){ $cf->{$tmp}->{$tmp2}=$data{$_}; } elsif($cf->{$tmp}->{$tmp2}->{key} eq $_){ $cf->{$tmp}->{$tmp2}->{value}=$data{$_}; } } } } $new=&{$Sysname.'_scripter'}($cf); open(TMP,">$gcffile"); print TMP $new; close(TMP); eval{ &{$Sysname.'_engine'}($gcffile); }
}
General documentation
No general documentation available.