|
From: | Nicolas Höft |
Subject: | Re: [h5md-user] Species Data Type |
Date: | Tue, 06 Aug 2013 20:58:51 +0200 |
User-agent: | Opera Mail/12.16 (Win32) |
Hi Peter,
An HDF5 enumerated type is derived from a given integer type, and defines a set of strings along with a set of corresponding integer values. The key to enums is that the HDF5 library transparently translates between different sets of integer values representing a common set of strings.
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 :-) Nicolas
[Prev in Thread] | Current Thread | [Next in Thread] |