Hi Dimitris, On Mar 4, 2010, at 3:45 AM, Dimitris Servis wrote:
> > Hi all, > > it is mentioned in > http://www.hdfgroup.org/HDF5/doc/RM/RM_H5P.html#Property-SetPreserve that > H5Pset_preserve is deprecated. I save a class like this one: > > class Myclass > { > std::string m_classname; > double m_double; > int m_int; > std::string m_base; > std::vector<double> m_vector; > } > > It's really a POD class. My compound data type looks like this: > > m_Myclass = H5Tcreate (H5T_COMPOUND, sizeof(Myclass)); > H5Tinsert(m_Myclass, "m_double", HOFFSET(Myclass, m_double), > H5T_NATIVE_DOUBLE); > H5Tinsert(m_Myclass, "m_int", HOFFSET(Myclass, m_int), H5T_NATIVE_INT); > > when I load it back, the double and the int are correctly read, but the whole > object is initialized to something else and therefore completely > destroyed.... any similar expereinces? Hmm, how is your dataset stored? Can you send us a simple example program that shows the problem? Quincey
_______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
