Changeset 1061 for applications/bdmtoolbox/doc
- Timestamp:
- 06/08/10 17:41:47 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/bdmtoolbox/doc/from_bdm/class_hierarchy.pl
r1043 r1061 57 57 } 58 58 59 #print"==Hierarchy";60 #print_class($classes_hier, 0);61 # 62 #print"\n==List\n";63 #map { print"$_\n" } sort keys %{ $classes_list };64 # 59 print STDERR "==Hierarchy"; 60 print_class($classes_hier, 0, *STDERR); 61 62 print STDERR "\n==List\n"; 63 map { print STDERR "$_\n" } sort keys %{ $classes_list }; 64 65 65 #print "\n==Given\n"; 66 66 print_class($classes_list->{$GIVEN_CLASS}, 0); … … 69 69 my $class = shift; 70 70 my $indent = shift; 71 my $out = shift || *STDOUT; 71 72 72 print " " x $indent;73 print $ class->{name}, "\n";73 print $out " " x $indent; 74 print $out $class->{name}, "\n"; 74 75 75 map { print_class($_, $indent+1 ) } @{ $class->{daughters} };76 map { print_class($_, $indent+1, $out) } @{ $class->{daughters} }; 76 77 }