ManaTools::ConfigReader - This module allows to load an XML configuration file
use ManaTools::ConfigReader; my $settings = new ManaTools::ConfigReader({filNema => $fileName});
This module allows to load a configuration file returning a Hash references with its content.
perldoc ManaTools::ConfigReader
XML::Simple ManaTools::MainDisplay
Angelo Naselli <anaselli@linux.it>
Copyright 2012-2016, Angelo Naselli. Copyright 2012, Steven Tucker. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2, as published by the Free Software Foundation. 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; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
hash ref containing fileName: configuration file name
OUTPUT attributes
data: Hash reference containing the configuration read catLen: number of categories found modLen: number of modules found currCat: current category currMod: current module
DESCRIPTION
The constructor just loads the given file and provide accessors.
$self: this object
DESCRIPTION
The BUILD method is called after a Moose object is created, Into this method new optional parameters are tested once, instead of into any other methods.
$self: this object
OUTPUT
1: if there are any other ctegories
DESCRIPTION
This method returns if there are any categories left
$self: this object
OUTPUT
$cat: next category
DESCRIPTION
This method returns the next category
$self: this object
OUTPUT
1: if there are any other modules
DESCRIPTION
This method returns if there are any modules left
$self: this object
OUTPUT
$cat: next module
DESCRIPTION
This method returns the next module