]> jspc29.x-matter.uni-frankfurt.de Git - mvdsensorcontrol.git/commitdiff
cosmetics
authorwww@jspc55 <www@jspc55>
Fri, 11 Jul 2014 15:15:26 +0000 (17:15 +0200)
committerwww@jspc55 <www@jspc55>
Fri, 11 Jul 2014 15:15:26 +0000 (17:15 +0200)
tools/AccessXmlDb.pm
tools/changeConfigVal.pl

index 21d170d439384973fe6cade4f92ba628fcb47d72..0728fba4a828cc136091b921763132db731b45d9 100644 (file)
@@ -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 = {
index 505a0bba1c7f0b883ee279c54e6a801afac104d8..67a818d7faf2be147a6af89e1c1b606f0830f598 100755 (executable)
@@ -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