h5md-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [h5md-user] Species Data Type


From: Peter Colberg
Subject: Re: [h5md-user] Species Data Type
Date: Wed, 7 Aug 2013 00:37:08 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

Hi Nicolas,

On Tue, Aug 06, 2013 at 08:58:51PM +0200, Nicolas Höft wrote:
> Is it possible to read/write an enum type as int type? What I mean
> is: Is this backwards-compatible? Can a program that does not know
> about HDF5 enums simply read the int's and continue as usual?
> 
> I really like the solution, though :-)

It is compatible with readers expecting an integer data type. An
enumerated-type dataset can be read using, e.g., H5T_NATIVE_INT as
the memory datatype.

For writing, however, the memory datatype needs to be an enumerated
type. A program extending an existing enumerated-type dataset needs
to be aware of this.

Peter



reply via email to

[Prev in Thread] Current Thread [Next in Thread]