Beware, however, that it is NOT possible to pack multiple single bit named
entities into the same byte in HDF5, keep reading down the above post for
more background.
Thank you very much for your immediate reply. Could you do me a favor and
let me know how I can do this with C APIs? I'm not familiar with these APIs
much as I have not built c++ libraries for HDF5.
Hi Santosh - your best bet is in fact to download the HDF5 source, and open
the files that implement the classes in the example, and cut & paste the
contents of the relevant methods.
This is a technique I've used myself where the C++ implementation is broken
for my compiler (such as the "read" constructor of the packet table class).
The code in my example is just 2 constructors & two methods. But going to
the HDF5 C++ source is instructive - the classes are basically just wrappers
for a bunch of C code, so they're easy to understand and copy, but written
by people who know what they're doing - i.e. not me
Steve
....proceed to populate with data...
-------------
Notice if the table can't be opened then it is created with "H5PTcreate_fl" and setup to take compound data type with variable length c string data. The HDFView won't show these properly but custom retrieval can get this data.
Also it won't work with parallel hdf5 at this point.
On 11/19/2010 07:17 AM, santoshdarekar wrote:
Dear Steve,
That was great, the solution you provided. I tried it and surprised.... It
worked for me. Thanks a lot.
One more question, do you have any idea about how we can write variable
length data in packet table.
I checked for the API 'H5PTcreate_vl' but it is not available in HDF5
version I'm using here i.e. 1.8.5.
Do you have any magic with you to surprise me one more time?