diff options
author | Bill Wendling <wendling@ncsa.uiuc.edu> | 2001-07-09 06:40:08 (GMT) |
---|---|---|
committer | Bill Wendling <wendling@ncsa.uiuc.edu> | 2001-07-09 06:40:08 (GMT) |
commit | 21000f0c090405e7c851096306be4149051a33e2 (patch) | |
tree | de1fe3eaa1011052b3c3d2baf783d71eb27095ae /tools/h5dump | |
parent | 208e185f6a19d8e27e1c12c7678ce17fad0f26ee (diff) | |
download | hdf5-21000f0c090405e7c851096306be4149051a33e2.zip hdf5-21000f0c090405e7c851096306be4149051a33e2.tar.gz hdf5-21000f0c090405e7c851096306be4149051a33e2.tar.bz2 |
[svn-r4150]
Purpose:
Checking in BOb's Changes
Description:
Just checking in Bob McGrath's changes to the h5dumper's XML code.
Diffstat (limited to 'tools/h5dump')
-rw-r--r-- | tools/h5dump/h5dump.c | 36 |
1 files changed, 28 insertions, 8 deletions
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c index 9834dda..85c554b 100644 --- a/tools/h5dump/h5dump.c +++ b/tools/h5dump/h5dump.c @@ -4049,10 +4049,16 @@ xml_dump_attr(hid_t attr, const char *attr_name, void UNUSED * op_data) indentation(indent); printf("<Data>\n"); indentation(indent); - printf("<DataFromFile>\n"); - xml_print_refs(attr_id, ATTRIBUTE_DATA); - indentation(indent); - printf("</DataFromFile>\n"); + if (!H5Tequal(type, H5T_STD_REF_OBJ)) { + printf("<!-- Note: Region references not supported -->\n"); + indentation(indent); + printf("<NoData />\n"); + } else { + printf("<DataFromFile>\n"); + xml_print_refs(attr_id, ATTRIBUTE_DATA); + indentation(indent); + printf("</DataFromFile>\n"); + } indentation(indent); printf("</Data>\n"); break; @@ -4163,6 +4169,8 @@ xml_dump_named_datatype(hid_t type, const char *name) nmembers = H5Tget_nmembers(type); indentation(indent); + printf("<DataType>\n"); + indentation(indent); printf("<CompoundType>\n"); indent += COL; @@ -4212,11 +4220,17 @@ xml_dump_named_datatype(hid_t type, const char *name) indent -= COL; indentation(indent); printf("</CompoundType>\n"); + indentation(indent); + printf("</DataType>\n"); } else { /* Other data types: call print_datatype */ + indentation(indent); + printf("<DataType>\n"); indent += COL; xml_print_datatype(type); indent -= COL; + indentation(indent); + printf("</DataType>\n"); } indent -= COL; @@ -4740,10 +4754,16 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t UNUSED *sset) indentation(indent); printf("<Data>\n"); indentation(indent); - printf("<DataFromFile>\n"); - xml_print_refs(did, DATASET_DATA); - indentation(indent); - printf("</DataFromFile>\n"); + if (!H5Tequal(type, H5T_STD_REF_OBJ)) { + printf("<!-- Note: Region references not supported -->\n"); + indentation(indent); + printf("<NoData />\n"); + } else { + printf("<DataFromFile>\n"); + xml_print_refs(did, DATASET_DATA); + indentation(indent); + printf("</DataFromFile>\n"); + } indentation(indent); printf("</Data>\n"); break; |