|o||A configuration item contains an error (mostly undefined mandatory values)|
|o||A configuration item contains warnings and the constructors argument call_back_on_warning was set.|
|o||A configuration item has a important level and the constructors argument call_back_on_important was set.. See level parameter for details.|
The constructor should be used only by Config::Model::Instance with the iterator method.
A iterator requires at least two kind of call-back: a call-back for leaf elements and a call-back for hash elements (which will be also used for list elements).
These call-back must be passed when creating the iterator (the parameters are named leaf_cb and hash_element_cb)
Here are the the parameters accepted by iterator:
Whether to call back when an important element is found (default 0).
Whether to call back when an item with warnings is found (default 0).
Specifies the status of the element scanned by the wizard (default standard).
Subroutine called backed for leaf elements. See Callback prototypes in Config::Model::ObjTreeScanner for signature and details. (mandatory)
Subroutine called backed for hash elements. See Callback prototypes in Config::Model::ObjTreeScanner for signature and details. (mandatory)
By default, leaf_cb will be called for all types of leaf elements (i.e enum. integer, strings, ...). But you can provide dedicated call-back for each type of leaf:
enum_value_cb, integer_value_cb, number_value_cb, boolean_value_cb, uniline_value_cb, string_value_cb
Likewise, you can also provide a call-back dedicated to list elements with list_element_cb
Start the scan and perform call-back when needed. This function will return when the scan is completely done.
When called, a variable is set so that all call_backs will return as soon as possible. Used to abort wizard.
Set wizard in forward (default) mode.
Set wizard in backward mode.
Dominique Dumont, (ddumont at cpan dot org)
Config::Model, Config::Model::Instance, Config::Model::Node, Config::Model::HashId, Config::Model::ListId, Config::Model::Value, Config::Model::CheckList, Config::Model::ObjTreeScanner,
This software is Copyright (c) 2005-2016 by Dominique Dumont.
This is free software, licensed under:
The GNU Lesser General Public License, Version 2.1, February 1999
|perl v5.20.3||CONFIG::MODEL::ITERATOR (3)||2016-04-03|