ManaTools::ConfigReader

Section: User Contributed Perl Documentation (3)
Updated: 2017-07-06
Page Index
 

NAME

    ManaTools::ConfigReader - This module allows to load an XML configuration file

 

SYNOPSIS

    use ManaTools::ConfigReader;

    my $settings = new ManaTools::ConfigReader({filNema => $fileName});

 

DESCRIPTION

    This module allows to load a configuration file returning a Hash references with its content.

 

SUPPORT

You can find documentation for this module with the perldoc command:

    perldoc ManaTools::ConfigReader

 

SEE ALSO

    XML::Simple
    ManaTools::MainDisplay

 

AUTHOR

    Angelo Naselli <anaselli@linux.it>

 

COPYRIGHT and LICENSE

    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

 

METHODS

 

new

INPUT

    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.

 

BUILD

INPUT

    $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.

 

hasNextCat

INPUT

    $self: this object

OUTPUT

    1: if there are any other ctegories

DESCRIPTION

    This method returns if there are any categories left

 

getNextCat

INPUT

    $self: this object

OUTPUT

    $cat: next category

DESCRIPTION

    This method returns the next category

 

hasNextMod

INPUT

    $self: this object

OUTPUT

    1: if there are any other modules

DESCRIPTION

    This method returns if there are any modules left

 

getNextMod

INPUT

    $self: this object

OUTPUT

    $cat: next module

DESCRIPTION

    This method returns the next module


 

Index

NAME
SYNOPSIS
DESCRIPTION
SUPPORT
SEE ALSO
AUTHOR
COPYRIGHT and LICENSE
METHODS
new
BUILD
hasNextCat
getNextCat
hasNextMod
getNextMod