NAME
UMMF::Core::Config - Configuration object.
SYNOPSIS
my $config = UMMF::Core::Config->new('argv' => \@ARGV,
'env' => \%ENV,
);
my $value = $config->config_value($modelElement, $name, $default);
DESCRIPTION
This class is used by bin/ummf.pl to allow the user to specify overrides for configuration.
USAGE
my $value = $config->config_*($model_element, $key, $default);
EXPORT
None exported.
AUTHOR
Kurt Stephens, kstephens@users.sourceforge.net 2003/10/10
SEE ALSO
VERSION
$Revision: 1.6 $
METHODS
config_enabled
config_value
my $value = $self->config_value($model_element, $key, $default);
Returns the configuration value for $key for a $model_element.
The result defaults to $default, if no match value is found.
config_value_inherited
my $value = $self->config_value_inherited($model_element, $key, $default);
Same as config_value
but searches up the $model_element's namespace for a matching TaggedValue.
This allows control values to be defined in a Package that will be inherited from all ModelElements under the Package.
config_value_true
my $value = $self->config_value($model_element, $key, $default);
Returns true if the $self->config_value(...) is a 'true' value.
config_value_inherited_true
my $value = $self->config_value_inherited_true($model_element, $key, $default);
Returns true if the $self->config_value_inherited(...) is a 'true' value.