summaryrefslogtreecommitdiffstats
path: root/tools/h5dump.c
Commit message (Collapse)AuthorAgeFilesLines
* [svn-r3492] Purpose:Bill Wendling2001-02-221-4550/+0
| | | | | | | | Code Movement Description: Moved these files to subdirectories in the tools/ directory. Platforms tested: Linux, Kelgia
* [svn-r3484] Robert E. McGrath2001-02-221-6/+21
| | | | | | | | | | | Purpose: fix bug in XML output Description: OBJ-XID, Parents, etc. were messed up in several cases. Solution: Fixed. Updated tests to have correct results in them Platforms tested: Solaris 2.7
* [svn-r3437] Purpose:Bill Wendling2001-02-161-126/+383
| | | | | | | | | | | | | Feature Add Description: This is the first phase of adding subsetting to the dumper. The command-line parsing should be pretty much set right now. NOTE: The revision before this one can be used to back port to the 1.4 branch when the XML stuff is folded into that branch for release. Platforms tested: Linux
* [svn-r3412] Purpose:Bill Wendling2001-02-151-274/+324
| | | | | | | | | | | | | | | | | | | | | | | Code cleanup Description: Cleaned the code up a bit getting rid of some warnings about "const" being lost from passing a const char * to a function, etc. Also force the error messages to stderr instead of simply printing them to stdout. The same behaviour can be achieved by running h5dump like: h5dump ... 2>&1 however, the error reporting before this change wasn't consistent in its use. I also made some of the error messages clearer (giving names of the failed types and, when there's an "internal error", reporting the line number the error occurred on so that we can debug). Solution: Converted to "fflush(stdout); fprintf(stderr,...);" for all error reportings. Platforms tested: Linux
* [svn-r3408] Purpose:Robert E. McGrath2001-02-141-893/+3096
| | | | | | | | Adding new feature. Description: XML output option to h5dump Platforms tested: SPARC Solaris 2.7, Irix6.5 (32bit), Linux, Win98
* [svn-r3265] Purpose:Quincey Koziol2001-01-101-2/+3
| | | | | | | | Clean up warnings. Description: Cleaned up a few compiler warnings. Platforms tested: FreeBSD 4.2 (hawkwind)
* [svn-r3264] Purpose:Bill Wendling2001-01-101-5/+3
| | | | | | | | | | | Bug fix Description: I dropped the boat on this one. I assigned prefix to NULL after it'd been allocated...My bad. Solution: Stopped doing that. Platforms tested: Linux
* [svn-r3262] Purpose:Bill Wendling2001-01-101-3/+1
| | | | | | | | | | Annoying code cleanup Description: This code could all be on one line, but wasn't for some reason. Solution: Made it into one printf() call. Platforms tested: Linux
* [svn-r3261] Purpose:Bill Wendling2001-01-101-87/+165
| | | | | | | | | | Code Cleanup Description: Cleaned up where structures were. Added comments to new functions. Removed strcpy(prefix, "") and made it prefix = NULL; since that's what it's doing anyway. Platforms tested: Linux
* [svn-r3257] Purpose:Quincey Koziol2001-01-101-1/+1
| | | | | | | | | | | Bug fix Description: Compiler on sangamon (HP/UX 10.20) is having problems with the statement "#ifdef 0". Solution: Changed statement to "#if 0" instead. Platforms tested: Eyeballed...
* [svn-r3252] Purpose:Quincey Koziol2001-01-091-8/+11
| | | | | | | | | | | | | Code cleanup. Description: Fixed _lots_ (I mean _tons_) of warnings spit out by the gcc with the extra warnings. Including a few show-stoppers for compression on IRIX machines. Solution: Changed lots of variables' types to more sensible and consistent types, more range-checking, more variable typecasts, etc. Platforms tested: FreeBSD 4.2 (hawkwind), IRIX64-64 (modi4)
* [svn-r3248] Purpose:Bill Wendling2001-01-091-344/+431
| | | | | | | | | | | | New Feature Description: Changed the command line flags in the h5dumper so that they accept both short and long flags. The flag syntax for some have changed (I.e., object ids are no longer -v but -i and -header is now -H or --header, etc.) A new function is added called get_options which can be used for all other tools as well. Platforms tested: Linux
* [svn-r3112] Purpose:Quincey Koziol2000-12-111-18/+5
| | | | | | | | | | | | Bug Fix Description: Stumbled across a problem when working on the J90 h5dump problem where I noticed that some of the output for named compound datatypes wasn't being displayed. Solution: Corrected output to display missing information. Platforms tested: FreeBSD 4.2 (hawkwind) & Cray J90 (killeen)
* [svn-r3066] Purpose:Quincey Koziol2000-12-021-2/+1
| | | | | | | | | | | | Bug Fix. Description: Attributes whose datatype was an object or dataset region reference weren't dumping correctly. Solution: Pass along attribute ID to the code which prints the attributes, so the reference types can be dereferenced and printed. Platforms tested: FreeBSD 4.2 (hawkwind) & IRIX64 6.5 (modi4)
* [svn-r2987] Purpose:Quincey Koziol2000-11-211-51/+61
| | | | | | | | | Bug fixes and misc. code fixing. Description: Updated to reflect current DDL document. Also changed VL data to be able to be able also dump VL data of any other datatype. Platforms tested: FreeBSD 4.1.1 (hawkwind)
* [svn-r2965] Purpose:Bill Wendling2000-11-171-1/+1
| | | | | | Usage Statement Reworking Description: Changed usage statement to correspond to the Tools.html page.
* [svn-r2956] Purpose:Bill Wendling2000-11-161-2/+2
| | | | | | | Backing out fix Description: The fix I inserted didn't work on all platforms. I'm backing it out.
* [svn-r2950] Purpose:Bill Wendling2000-11-161-2/+2
| | | | | | | | | | | | Bug fix Description: The output of floating point dumps wasn't necessarily standard. The h5ls utility does it in a better way. Solution: Changed the output parameters from %g to %1.*g and added the appropriate FLT_DIG/DBL_DIG parameter for the `*' in the above. Platforms tested: Linux
* [svn-r2845] Purpose:Quincey Koziol2000-11-091-241/+252
| | | | | | | | New Feature Description: Added dumping array datatypes to h5dump and the tool library. Platforms tested: FreeBSD 4.1.1 (hawkwind)
* [svn-r2790] Purpose:Albert Cheng2000-11-021-11/+11
| | | | | | | | | | | | | | | | new feature Description: h5tools.c: Created h5tools_init() and h5tools_close() for the initialization of the h5tools library and closing of it. With this, the rawdatastream and other internal structures can be initialized properly. h5tools.h: added prototypes for h5tools_init and h5tools_close. h5dump.c: h5ls.c: Added the calls for h5tools_init() and h5tools_close(). Platforms tested: IRIX64 -64 parallel and Linux
* [svn-r2738] Purpose:Bill Wendling2000-10-251-5/+11
| | | | | | | | | | | Bug Fix Description: People need to type in the full-path to the attribute/dataset/etc. and weren't being told to do so by the "usage" statement. Solution: Added an example and changed <names> to <path> to be more explicit...
* [svn-r2737] Purpose:Bill Wendling2000-10-251-0/+10
| | | | | | | | | | | | Feature Description: Allow dumping of variable length records. This is a first-time stab at this. It doesn't break any tests on my Linux box and it does output the variable length data, but it might look ugly (it doesn't handle new-lines as of yet)...I'm open to suggestions on what should be done next, what new features to add/remove... Platforms tested: Linux
* [svn-r2637] Purpose:Bill Wendling2000-10-061-803/+756
| | | | Format changes
* [svn-r2627] Purpose:Albert Cheng2000-10-021-1/+1
| | | | | | | | | | | | Bug fix Description: Attempted to close rawdatastream even if it has not been used to open a new file. Many systems tolerated the NULL value but not FreeBSD. Solution: Check for the NULL value too. Platforms tested: hawkwind (freeBSD) and modi4 parallel.
* [svn-r2626] Purpose:Albert Cheng2000-09-301-1/+51
| | | | | | | | | | | | | | | | | | | | New Feature Description: Add -o option to h5dumper. It displays the raw data of datasets to a separate output file. Add a feature to h5tools library that it uses the FILE *rawdatastream as the stream for the display of datasets raw data. Solution: Define an "extern FILE *rawdatastream" in h5tools.h and declare it in h5tools.c. This way, it would work even if an application does not explicitely declare it. Tried to initialized it to stdout as FILE *rawdatastream = stdout; but Linux gcc rejected it though all other platforms+compilers accepted it fine. For now, put in a kludge to set it right before it is used. Need a safer way to initialize it. Platforms tested: arabica, eirene, modi4 -64.
* [svn-r2623] Purpose:Albert Cheng2000-09-301-721/+725
| | | | | | | | | | Reformat the source Description: The tabstop seems to defined different from 8-stops. The source files looked very confusing. Just reformate the files. Not change to source code at all. Platforms tested: modi4 -64.
* [svn-r2579] Purpose:Quincey Koziol2000-09-191-1/+0
| | | | | | Clean up small compiler warnings and add missing function prototypes. Platforms tested: FreeBSD 4.1
* [svn-r2462] Fixed some small compiler warnings.Bill Wendling2000-08-041-836/+879
|
* [svn-r2412] Fixed a variety of problems with the new H5ToolsFopen() function.Robb Matzke2000-06-231-1/+1
| | | | | | | | | | | | | | | | | | | | 1. The `driver' table is initialized only once, making it faster and leaking less memory. 2. The returned driver name is set to the empty string on failure. 3. Added an argument so the function cannot overwrite the end of the drivername return value. 4. Avoids core dump when assigning driver name to return value if the file could not be opened by any driver. 5. Changed name of function to h5dump_fopen() to follow the naming scheme for this source file. 6. Reindented according to hdf5 code standard. 7. Added `const' qualifiers to read-only formals. 8. Removed duplicate forward declaration. Reindented some parts of these source files that had very odd indentation (some lines had no indentation while others had 3x what they should). Fixed calls to H5ToolsFopen() function.
* [svn-r2341] took the code out of h5ls to open files using different drivers ↵Patrick Lu2000-06-061-4/+6
| | | | | | | | | and created a function in the tools library for it(H5ToolsFopen-takes a filename and a char ptr if you want the name of the driver) added the function to h5tools.c, a header to h5tools.h and changed h5ls.c and h5dump.c to use the new functions
* [svn-r2305] took out the line that said the bitfields are not supported in ↵Patrick Lu2000-05-311-4/+1
| | | | | | the dumper. now it will dump bitfields using the the tools lib like h5ls does.
* [svn-r2304] *** empty log message ***Patrick Lu2000-05-301-2/+1
|
* [svn-r2294] fixed the output of the options list so that the xml options ↵Patrick Lu2000-05-261-1/+1
| | | | text is aligned
* [svn-r2243] h5dump.c: Removed some Carriage-return'sAlbert Cheng2000-05-111-2/+2
| | | | | h5tools.c h5tools.h: Modified print_version() to use const char * argument instead.
* [svn-r2228] added a semicolon after the opaque info is printedPatrick Lu2000-05-091-2/+2
|
* [svn-r2214] added support for the opaque type.Patrick Lu2000-05-041-4/+9
| | | | | prints out the data section in hexidecimal format. in the h5dumptst.c i added a function to create an opaque test file.
* [svn-r2155] fixed the error in the h5ls output. it is now printing like it ↵Patrick Lu2000-04-191-5/+4
| | | | | | did before the tools lib merge. prints the index numbers. moved the lines that were doing indenting into the conditionals.
* [svn-r2139] Change the global static variable 'status' to 'd_status' in this ↵Raymond Lu2000-04-131-47/+47
| | | | file. Same name appears as an external variable in SRB library, causing conflict.
* [svn-r2020] Fine tuned the declaration of dump_header_format to be "const" ↵Albert Cheng2000-03-101-1/+1
| | | | consistent.
* [svn-r2016] fixed the problem with the -xml option that prevented it from ↵Patrick Lu2000-03-091-0/+1
| | | | | | | working unless it was the last argument in the run time options. just added another && condition.
* [svn-r2015] changed the dataspacedescrition begin and end for the xml structPatrick Lu2000-03-091-2/+2
|
* [svn-r2014] fixed a typoPatrick Lu2000-03-091-1/+1
|
* [svn-r2013] added comments to the large structure definitionPatrick Lu2000-03-091-42/+42
|
* [svn-r2011] added new structure to h5tools.h that is used to customize the ↵Patrick Lu2000-03-091-121/+247
| | | | | | | | | | | | output for the header information in the dumper. the header is the part before the data block. in h5dump.c there is support for the new -xml option. prints the output in xml using the structure we just defined in h5tools.h. h5dump.h- changed the begin_obj and end_obj macros. take an extra parameter now
* [svn-r1992] added a few definitions for formats in the dump structurePatrick Lu2000-02-281-1/+5
| | | | fixed the bug that was crashing for the development version of the dumper
* [svn-r1989] removed the variable for the attribute that I didn't need.Patrick Lu2000-02-241-1/+1
|
* [svn-r1988] fixed the crashing bug on sangamon with the shared libs. I had ↵Patrick Lu2000-02-241-1/+0
| | | | | | a line thet closed the attribute that wasn't ever opened. deleted the line and it was all ok.
* [svn-r1973] fixed the dataset regions problem with the dumper.Patrick Lu2000-02-171-0/+7
| | | | | | now the dump structure contains 2 extra members that tell how to format the data for the dataset regions(blocks and pts). had to give h5ls values for these
* [svn-r1971] removed a newline from a string after the enum type is printedPatrick Lu2000-02-171-1/+1
|
* [svn-r1969] fixed a bug with the objrefs. added a format string to the dump ↵Patrick Lu2000-02-171-1/+10
| | | | | | struct to display the format for the obj refs.