Sponsored Content
Special Forums News, Links, Events and Announcements Software Releases - RSS News Arg_parser 1.1 (Stable branch) Post 302170426 by Linux Bot on Monday 25th of February 2008 02:40:07 PM
Old 02-25-2008
Arg_parser 1.1 (Stable branch)

Arg_parser is an argument parser that follows POSIX and GNU conventions for command line arguments. It is implemented as a C++ class, and is simpler, easier to use, and safer than "getopt_long". Arg_parser does not modify its arguments, nor uses any global variables. So you may create more than one parser in your program if you need or want to. Arg_parser can also parse options from configuration files. A C language version is also available. License: GNU General Public License v3 Changes:
A C language version has been added. Options requiring an argument no longer accept an empty argument.Image

More...
 
SpecParser(3pm) 					  LogReport's Lire Documentation					   SpecParser(3pm)

NAME
Lire::Config::SpecParser - Create configuration specification from XML files SYNOPSIS
use Lire::Config::SpecParser; my $parser = new Lire::Config::SpecParser; my $spec = $parser->parsefile( 'spec.xml' ); $parser->merge_specifications_dir( '/etc/lire/config' ); my $spec = $parser->configspec(); DESCRIPTION
This is an Lire::XMLParser which can build Lire::Config::ConfigSpec objects from an XML file. new() Creates a new parser object. configspec() Returns the Lire::Config::ConfigSpec object parsed. merge_specifications_dir( $dir ) Parses all the files ending in '.xml' in the $directory. The types defined in these files will be merged to the ConfigSpec object of this parser. merge_specification_dir( $file ) Parses the $file XML file and merges the types it defines in the ConfigSpec defined by this parser. SEE ALSO
Lire::Config::Parser(3pm), Lire::Config::TypeSpec(3pm), Lire::Config::ConfigSpec(3pm) AUTHORS
Wessel Dankers <wsl@logreport.org> Francis J. Lacoste <flacoste@logreport.org> VERSION
$Id: SpecParser.pm,v 1.44 2006/07/23 13:16:30 vanbaal Exp $ COPYRIGHT
Copyright (C) 2002,2004 Stichting LogReport Foundation LogReport@LogReport.org This file is part of Lire. Lire is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with http://www.gnu.org/copyleft/gpl.html. Lire 2.1.1 2006-07-23 SpecParser(3pm)
All times are GMT -4. The time now is 02:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy