Hi Binh-Minh,
It was not written in our organization. Here is the email from the person
who wrote it

We read and write the HDF using the python interface which does the
conversion to/from hdf internally.

Not being a C++ programmer he cannot help more than that. I can ask him for
the python script,
but I doubt it will help.
Thanks a lot,
Yury


On Wed, Jul 24, 2013 at 1:55 PM, Binh-Minh Ribler <[email protected]>wrote:

>  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
>
>
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org

Reply via email to