mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
2f36ea99d4
Add H5Lvisit_by_name() API routine to library. Eliminated all (five!) other group traversal routines and changed them all to use the new API routine. Cleaned up output of h5ls & h5stat: - Issue error when requesting recursive traversal of a file with the "group info" flag, but no group given - Print info about root group in all(?) appropriate situations - Don't print "verbose" information about root group until the root group is in the list of objects to display (mostly because h5ls & h5stat had a different twist on traversing the groups in a file that the other utilities) Tested on: FreeBSD/32 6.2 (duty) in debug mode FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN, in production mode Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN, in production mode Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN, w/szip filter, in production mode Mac OS X/32 10.4.10 (amazon) in debug mode Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
31 lines
1.3 KiB
Plaintext
31 lines
1.3 KiB
Plaintext
#############################
|
|
output for 'h5ls -w80 -r -d tall.h5'
|
|
#############################
|
|
/ Group
|
|
/g1 Group
|
|
/g1/g1.1 Group
|
|
/g1/g1.1/dset1.1.1 Dataset {10, 10}
|
|
Data:
|
|
(0,0) 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 2,
|
|
(2,2) 4, 6, 8, 10, 12, 14, 16, 18, 0, 3, 6, 9, 12, 15, 18, 21, 24, 27,
|
|
(4,0) 0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 0, 5, 10, 15, 20, 25, 30, 35,
|
|
(5,8) 40, 45, 0, 6, 12, 18, 24, 30, 36, 42, 48, 54, 0, 7, 14, 21, 28,
|
|
(7,5) 35, 42, 49, 56, 63, 0, 8, 16, 24, 32, 40, 48, 56, 64, 72, 0, 9,
|
|
(9,2) 18, 27, 36, 45, 54, 63, 72, 81
|
|
/g1/g1.1/dset1.1.2 Dataset {20}
|
|
Data:
|
|
(0) 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19
|
|
/g1/g1.2 Group
|
|
/g1/g1.2/extlink -> file: somefile path: somepath
|
|
/g1/g1.2/g1.2.1 Group
|
|
/g1/g1.2/g1.2.1/slink -> somevalue
|
|
/g2 Group
|
|
/g2/dset2.1 Dataset {10}
|
|
Data:
|
|
(0) 1, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9
|
|
/g2/dset2.2 Dataset {3, 5}
|
|
Data:
|
|
(0,0) 0, 0.1, 0.2, 0.3, 0.4, 0, 0.2, 0.4, 0.6, 0.8, 0, 0.3, 0.6, 0.9,
|
|
(2,4) 1.2
|
|
/g2/udlink -> cannot follow UD links
|