NAME

Net::Peep::Parser - Perl extension for parsing configuration files for Peep: The Network Auralizer.

SYNOPSIS

use Net::Peep::Parser;
my $parser = new Net::Peep::Parser;

# loadConfig returns a Net::Peep::Conf object

my $config = $parser->loadConfig(
                                 config => '/usr/local/etc/peep.conf', 
                                 app => 'logparser'
);

# all of the configuration information in /etc/peep.conf
# is now available through the observer methods in the
# Net::Peep::Conf object

DESCRIPTION

Net::Peep::Parser parses a Peep configuration file and returns a Net::Peep::Conf object whose accessors contain all the information found in the configuration file.

EXPORT

None by default.

METHODS

loadConfig(%options) - loads configuration information found in the
file $options{'config'} for application $options{'app'}.  Returns a
Net::Peep::Conf object.

parseConfig($config) - parses the configuration file $config.

parseClass($filehandle,$classname) - parses the class definition
section of a configuration file.

parseClient($filehandle,$client) - parses the client definition
section of a configuration file.

parseEvents($filehandle) - parses the event definition section of a
configuration file.

parseState($filehandle) - parses the state definition section of a
configuration file.

parseClientEvents($filehandle) - parses the client event definition
section of a configuration file.

parseClientDefault($filehandle) - parses the client defaults section
of a configuration file.

logger() - returns a Net::Peep::Log object for logging and
debugging.

configObject() - returns a Net::Peep::Conf object for storing and
retrieving configuration information.

AUTHOR

Collin Starkweather <collin.starkweather@colorado.edu> Copyright (C) 2001

SEE ALSO

perl(1), peepd(1), Net::Peep::BC, Net::Peep::Log, Net::Peep::Conf.

http://peep.sourceforge.net

CHANGE LOG

$Log: Parser.pm,v $ Revision 1.2 2001/07/23 17:46:29 starky Added versioning to the configuration file as well as the ability to specify groups in addition to / as a replacement for event letters. Also changed the Net::Peep::Parse namespace to Net::Peep::Parser. (I don't know why I ever named an object by a verb!)

Revision 1.1 2001/07/23 16:18:35 starky Changed the namespace of Net::Peep::Parse to Net::Peep::Parser. (Why did I ever create an object whose namespace was a verb anyway?!?) This file was consequently moved from peep/client/Net/Peep/Parse to its current location.