Writing Your Own HDF5 Virtual File Driver (VFD). Dana Robinson The HDF Group. Efficient Use of HDF5 With High Data Rate X-Ray Detectors Paul Scherrer Institut. Main Idea: Users should be able to write their own VFD without having to rebuild the HDF5 library. HDF5 Library. HDF5 API.
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
The HDF Group
Efficient Use of HDF5 With High Data Rate X-Ray Detectors
Users should be able to write their own VFD without having to rebuild the HDF5 library.
Virtual File Layer
1) Implement H5FDset_fapl_foo().
This will need to work with H5Pset_driver()
2) Implement appropriate VFD functions – read, write, etc.
3) Compile your code into a library or directly into your app.
The STDIO VFD is a demo driver which uses no internal HDF5 calls.
Not intended for production use!
Unfortunately, this means that you do not get HDF5's platform-independent wrapper functions.
Can copy and paste as a basis for your own VFD.
"sec2", /*name */
H5FD_sec2_term, /*terminate */
H5FD_sec2_open, /*open */
H5FD_sec2_close, /*close */
H5FD_sec2_query, /*query */
NULL, /*free */
H5FD_sec2_read, /*read */
H5FD_sec2_write, /*write */
NULL, /*flush */
NULL, /*lock */
NULL, /*unlock */
Each VFD contains a struct which maps our abstract VFL calls to your VFDs functions
Use NULL when not implemented