PluginParser - Parses the Defaults file inside a plugin
use PluginParser;
my $parser = new PluginParser(defaults=>$defaults);
print $parser->name
print $parser->machineRelated
my %oids = $parser->oids
my @targetTypes = $parser->targetTypes
my @ds = $parser->ds
PluginParser parses the Defaults file and infers information regarding a router. Its main job is to parse through the OID's and target_types. It has been called upon to parse also the plugin name and machine-relatedness. These information are needed by PluginManager.
new() - creates a new parser
defaults - default file
name() - returns the plugin name
machineRelated - returns whether the plugin is machine-related
oids() - returns a hash table of all OID's
targetTypes() - returns an array of target_types
ds() - returns an array
PluginParser is supported as part of the core Pawikan distribution. Please send bug report to <netapps@pregi.net> or use the bugzilla.
Edwin Viñas <edwinv@asti.dost.gov.ph>
Jerremeo Raynier Gabás <ren@asti.dost.gov.ph>
René Mendoza <renem@asti.dost.gov.ph>
Rey Vincent Babilonia <rvincent@asti.dost.gov.ph>
Paul Afroilan <paula@asti.dost.gov.ph>
Copyright (c) 2004 Philippine Research, Education and Government Information Network. All rights reserved. This program is part of the Pawikan distribution; you can redistribute it and/or modify it under the same terms as Pawikan itself.