Ignore:
Timestamp:
2005-07-06T15:27:45+12:00 (19 years ago)
Author:
kjdon
Message:

Jeffrey's new parsing modifications, committed approx 6 July, 15.16

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/OggVorbisPlug.pm

    r9853 r10218  
    3535
    3636sub BEGIN {
    37     @ISA = ('UnknownPlug');
     37    @OggVorbisPlug::ISA = ('UnknownPlug');
    3838}
    3939
     
    6565sub new
    6666{
    67     my $class = shift(@_);
    68 
    69     my $self = new UnknownPlug($class, @_);
    70     $self->{'plugin_type'} = "OggVorbisPlug";
    71 
    72     if (!parsargv::parse(\@_,
    73              q^add_technical_metadata^, \$self->{'add_technical_metadata'},
    74              "allow_extra_options")) {
    75     die "\nIncorrect options passed to OggVorbisPlug, check your collect.cfg configuration file\n";
    76     }
    77 
    78     # To allow for proper inheritance of arguments
    79     my $option_list = $self->{'option_list'};
    80     push(@{$option_list}, $options);
    81 
     67    my ($class) = shift(@_);
     68    my ($pluginlist,$inputargs,$hashArgOptLists) = @_;
     69    push(@$pluginlist, $class);
     70   
     71    if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}
     72    if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)};
     73   
     74    my $self = (defined $hashArgOptLists)? new UnknownPlug($pluginlist,$inputargs,$hashArgOptLists): new UnknownPlug($pluginlist,$inputargs);
     75   
    8276    return bless $self, $class;
    8377}
Note: See TracChangeset for help on using the changeset viewer.