Config::Model::Instance - Instance of configuration tree
my $model = Config::Model->new() ; $model ->create_config_class ( ... ) ; my $inst = $model->instance (root_class_name => 'SomeRootClass', instance_name => 'some_name');
This module provides an object that holds a configuration tree.
Usually, an instance object is created by calling instance method on an existing model:
my $inst = $model->instance (root_class_name => 'SomeRootClass', instance_name => 'test1');
Returns the root object of the configuration tree.
Returns the model of the configuration tree.
Tune Config::Model::Value to perform check on read (fetch) or write (store). The passed parameters are stacked. Parameters are :
Config::Model::Value
Skip write check.
Skip read check.
Skip value_type check (See Config::Model::Value for details).
Note that these values are stacked. They can be read by get_value_check until the next push_no_value_check or pop_no_value_check call.
Pop off the check stack the last check set entered with push_no_value_check.
push_no_value_check
Read the check status. Returns 1 if a check is to be done. O if not. When used with the fetch_or_store parameter, returns a logical or or the check values, i.e. read_check || write_check
fetch_or_store
or
read_check || write_check
The data method provide a way to store some arbitrary data in the instance object.
Load configuration tree with configuration data. See Config::Model::Loader for more details
Search an element in the configuration model (respecting privilege level).
This method returns a Config::Model::Searcher object. See Config::Model::Searcher for details on how to handle a search.
Dominique Dumont, domi@komarr.grenoble.hp.com
Config::Model, Config::Model::Node, Config::Model::Loader, Config::Model::Searcher, Config::Model::Value,
To install Config::Model, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Config::Model
CPAN shell
perl -MCPAN -e shell install Config::Model
For more information on module installation, please visit the detailed CPAN module installation guide.