NAME
CAD::Firemen::Analyze - Module provides functions to compare to lists with options (and values)
VERSION
version 0.7.2
METHODS
compare
Compares two lists of options and returns references to lists with added, changed and removed options. It ignores all options, which are duplicated
The added and removed list of options is an array, which contains the option names as values. The list of changed options is a hash with the option names as keys and references to the related CAD::Firemen::Change object as values.
# the keys of %{$added} and %{$removed} are the option names of the second options $added = { "ADDED_OPTION_ONE" => FIRST_LINE_NUMBER, "ADDED_OPTION_TWO" => FIRST_LINE_NUMBER };
$changed { "OPTION_NAME" => [ CAD::Firemen::Change, CAD::Firemen::Change ]; };
# the keys of %{$removed} are the option names of the second options $removed = { "REMOVED_OPTION_ONE" => FIRST_LINE_NUMBER, "REMOVED_OPTION_TWO" => FIRST_LINE_NUMBER, "REMOVED_OPTION_ONE" => FIRST_LINE_NUMBER };
optionsToIngoreAtPathCheckings
The paths from the options listed within the returned hash should be ignored when checking for relative paths and for existing directory and files in structure checkings (see fm_check_struct)
optionsToIngoreAtDuplicatesCheckings
The options listed here, may be needed more than one time in a config.
checkConfig
This method checks the given config among other tests also with help of the given cdb file. The function returns 0 if some test failes and returns 1 if all tests are passed.
To check case insensitive, set caseInsensitive = 1.
Per default (verbose level = 0) this function outputs nothing. So it may be useful to call it with verbose level = 1.
checkTreeConfig
This method checks the given tree config. Actually it checks, that no empty lines are in the file.
Per default (verbose level = 0) this function outputs nothing. So it may be useful to call it with verbose level = 1.
AUTHOR
Joachim Langenbach <langenbach@imw.tu-clausthal.de>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2015 by TU Clausthal, Institut fuer Maschinenwesen.
This is free software, licensed under:
The GNU General Public License, Version 2, June 1991