Changeset 10218 for trunk/gsdl/perllib/plugins/ConvertToRogPlug.pm
- Timestamp:
- 2005-07-06T15:27:45+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/ConvertToRogPlug.pm
r9853 r10218 63 63 64 64 sub new { 65 my $class= shift (@_);66 if ($class eq "ConvertToRogPlug" && defined $_[0]) {$class = shift (@_);}67 my $self;68 # parsargv::parse might modify the list, so we do this by creating a copy 69 # of the argument list.70 my @arglist = @_;71 my ($plugin_name) = $class->parse_args(\@_); 72 73 $self = new RogPlug ($class, @arglist); 65 my ($class) = shift (@_); 66 my ($pluginlist,$inputargs,$hashArgOptLists) = @_; 67 push(@$pluginlist, $class); 68 69 if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});} 70 if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)}; 71 72 my $self = (defined $hashArgOptLists)? new RogPlug($pluginlist,$inputargs,$hashArgOptLists): new RogPlug($pluginlist,$inputargs); 73 74 74 $self->{'convert_to'} = "Rog"; 75 75 $self->{'convert_to_ext'} = "rog"; 76 $self->{'plugin_type'} = "ConvertToRogPlug";77 # 14-05-02 To allow for proper inheritance of arguments - John Thompson78 my $option_list = $self->{'option_list'};79 push( @{$option_list}, $options );80 76 81 77 return bless $self, $class;
Note:
See TracChangeset
for help on using the changeset viewer.