From: www@jspc55 Date: Fri, 11 Jul 2014 15:15:26 +0000 (+0200) Subject: cosmetics X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=75a686ec44b9f9bfb89b91f9d49c207f5d5a772d;p=mvdsensorcontrol.git cosmetics --- diff --git a/tools/AccessXmlDb.pm b/tools/AccessXmlDb.pm index 21d170d..0728fba 100644 --- a/tools/AccessXmlDb.pm +++ b/tools/AccessXmlDb.pm @@ -30,9 +30,14 @@ sub channelParm { return $parm; } -sub dumpEntity { # for debug +sub dumpItem { # for debug my $self = shift; - print Dumper $self->{entity}; + my $item = shift; + unless (defined($item)){ + print Dumper $self->{entity}; + } else { + print Dumper $self->{entity}->{$item}; + } } sub channelList { @@ -40,6 +45,7 @@ sub channelList { return $self->{entity}->{AdcSensor}->{children};# returns a reference to an array } + # returns a hash ref to the following contents (example); # # $VAR1 = { diff --git a/tools/changeConfigVal.pl b/tools/changeConfigVal.pl index 505a0bb..67a818d 100755 --- a/tools/changeConfigVal.pl +++ b/tools/changeConfigVal.pl @@ -156,7 +156,7 @@ Register/Field=Value =head1 SYNOPSIS -changeConfigVal.pl -c config.xml [-v] +changeConfigVal.pl -c /path/to/config.xml [-v] The script parses STDIN for attribution directives in the format "registerName/fieldName=value" and applies these attributions to a denoted configuration XML file. Multiple attributions can be processed at