Confusion over tag/ref pairs
Ray Osborn
ROsborn at anl.gov
Wed Jan 12 18:08:51 GMT 2000
on 2000/1/12 12:16 PM, Przemek Klosowski at przemek at rrdjazz.nist.gov wrote:
> The code in $(HDF4.1r2-ROOT)/mfhdf/libsrc/mfsd.c:1015::SDcreate() is
>
> #ifdef NOT_YET
> var->ndg_ref = Htagnewref(handle->hdf_file,DFTAG_NDG);
> #else /* NOT_YET */
> var->ndg_ref = Hnewref(handle->hdf_file);
> #endif /* NOT_YET */
>
> and NOT_YET is not yet defined. So, they are clearly planning to move
> to DFTAG_NDG, but haven't done it at least until 4.1r2, where it just
> returns the next available ref. Could people survey their versions
> and find out if it was put in eventually. Ray, what is your version of
> HDF?
>
We're running precompiled binaries of v 4.1r3 here. The accompanying source
code still has the code you quote above. I'm in way over my head here, but
Htagnewref and Hnewref don't seem to allocate tags. They are just designed
to return unique reference numbers. The only difference is that the older
Hnewref returns a number that is unique to the whole file whereas Htagnewref
only returns a number unique to the particular tag. I still can't see where
the tag itself is specified.
If you have the answer to this, let us know. Otherwise, we'd better contact
HDF to find out what's going on.
Ray
--
Dr Ray Osborn Tel: +1 (630) 252-9011
Materials Science Division Fax: +1 (630) 252-7777
Argonne National Laboratory E-mail: ROsborn at anl.gov
Argonne, IL 60439-4845
More information about the NeXus-developers
mailing list