back to unicode
[MPC.git] / modules / MPC.pm
blob7a99498143d45ef9de53bcb3bee2f1c4d8b2bbe5
1 package MPC;
3 # ******************************************************************
4 # Description : Instantiate a Driver and run it. This is here to
5 # maintain backward compatibility.
6 # Author : Chad Elliott
7 # Create Date : 1/30/2004
8 # ******************************************************************
10 # ******************************************************************
11 # Pragma Section
12 # ******************************************************************
14 use strict;
15 use Driver;
17 # ************************************************************
18 # Subroutine Section
19 # ************************************************************
21 sub new {
22 my $class = shift;
23 my $self = bless {'creators' => [],
24 }, $class;
25 return $self;
29 sub getCreatorList {
30 return $_[0]->{'creators'};
34 sub execute {
35 my($self, $base, $name, $args) = @_;
36 my $driver = new Driver($base, $name, @{$self->{'creators'}});
37 return $driver->run(@$args);