Hi Yury, How did you create and write the attribute?
Binh-Minh ________________________________ From: Hdf-forum <[email protected]> on behalf of Yury Girshovich <[email protected]> Sent: Wednesday, July 24, 2013 1:04 PM To: [email protected] Subject: [Hdf-forum] Reading enum bool attribute I am trying to read an attribute defined as typedef enum {bbo=false, bb1=true} bb; as bb i; attr.read(attr_type, &i); The size of the attribute value is 1 byte. For attr_type I tried all kinds of 8 bit predicate types (as one advice suggested use int, and then interpret your data), bur no matter what I do the code crashes. The value is inserted in a different code using Python, so I can get no help from there. How should I define the predicate type then? Thanks
_______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
