|
| static void | init () |
| | Create and start the I/O thread. More...
|
| |
| static void | finalize () |
| | Destroy the I/O thread. More...
|
| |
| static int32 | Select (int32 sd_id, int32 &index, char *name, int32 *rank, int32 *size, int32 *dType, int32 *nAttrs, int32 dsCount=-1) |
| | "Open" and "close" HDF files efficiently. More...
|
| |
| static int | SizeOf (int32 dType) |
| | Get the size in bytes of an HDF data type. More...
|
| |
| static void | Terminate () |
| | Terminate the I/O thread. More...
|
| |
| static std::string | error_msg () |
| | return error message More...
|
| |
| static void | init () |
| | Create and start the I/O thread. More...
|
| |
| static void | finalize () |
| | Destroy the I/O thread. More...
|
| |
| static int32 | Select (int32 sd_id, int32 &index, char *name, int32 *rank, int32 *size, int32 *dType, int32 *nAttrs, int32 dsCount=-1) |
| | "Open" and "close" HDF files efficiently. More...
|
| |
| static int | SizeOf (int32 dType) |
| | Get the size in bytes of an HDF data type. More...
|
| |
| static void | Terminate () |
| | Terminate the I/O thread. More...
|
| |
| static std::string | error_msg () |
| | return error message More...
|
| |
|
| static intn | Hishdf (const char *filename) |
| | HDF4 wrapper functions. More...
|
| |
| static int32 | SDstart (const char *filename, int32 accessMode) |
| |
| static intn | SDend (int32 sd_id) |
| |
| static intn | SDfileinfo (int32 id, int32 *dsCount, int32 *nAttrs) |
| |
| static int32 | SDcreate (int32 sd_id, const char *name, int32 dType, int32 rank, int32 *size) |
| |
| static int32 | SDselect (int32 sd_id, int32 index) |
| |
| static intn | SDendaccess (int32 sds_id) |
| |
| static int32 | SDfindattr (int32 id, const char *attrName) |
| |
| static intn | SDgetinfo (int32 sds_id, char *name, int32 *rank, int32 *size, int32 *dType, int32 *nAttrs) |
| |
| static intn | SDsetdatastrs (int32 sds_id, const char *label, const char *units, const char *format, const char *coordsys) |
| |
| static intn | SDgetdatastrs (int32 sds_id, char *label, char *units, char *format, char *coordsys, intn length) |
| |
| static intn | SDsetrange (int32 sds_id, VOIDP max, VOIDP min) |
| |
| static intn | SDgetrange (int32 sds_id, VOIDP max, VOIDP min) |
| |
| static intn | SDwritedata (int32 sds_id, int32 *start, int32 *stride, int32 *end, VOIDP data) |
| |
| static intn | SDreaddata (int32 sds_id, int32 *start, int32 *stride, int32 *end, VOIDP data) |
| |
| static intn | DFSDsetdims (intn rank, int32 dimsizes[]) |
| | Single file interface. More...
|
| |
| static intn | DFSDsetNT (int32 numbertype) |
| |
| static intn | DFSDsetdatastrs (const char *label, const char *unit, const char *format, const char *coordsys) |
| |
| static intn | DFSDsetrange (VOIDP maxi, VOIDP mini) |
| |
| static intn | DFSDadddata (const char *filename, intn rank, int32 dimsizes[], VOIDP data) |
| |
| static intn | DFSDputdata (const char *filename, intn rank, int32 dimsizes[], VOIDP data) |
| |
|
| static intn | Hishdf (const char *filename) |
| | HDF4 wrapper functions. More...
|
| |
| static int32 | SDstart (const char *filename, int32 accessMode) |
| |
| static intn | SDend (int32 sd_id) |
| |
| static intn | SDfileinfo (int32 id, int32 *dsCount, int32 *nAttrs) |
| |
| static int32 | SDcreate (int32 sd_id, const char *name, int32 dType, int32 rank, int32 *size) |
| |
| static int32 | SDselect (int32 sd_id, int32 index) |
| |
| static intn | SDendaccess (int32 sds_id) |
| |
| static int32 | SDfindattr (int32 id, const char *attrName) |
| |
| static intn | SDgetinfo (int32 sds_id, char *name, int32 *rank, int32 *size, int32 *dType, int32 *nAttrs) |
| |
| static intn | SDsetdatastrs (int32 sds_id, const char *label, const char *units, const char *format, const char *coordsys) |
| |
| static intn | SDgetdatastrs (int32 sds_id, char *label, char *units, char *format, char *coordsys, intn length) |
| |
| static intn | SDsetrange (int32 sds_id, VOIDP max, VOIDP min) |
| |
| static intn | SDgetrange (int32 sds_id, VOIDP max, VOIDP min) |
| |
| static intn | SDwritedata (int32 sds_id, int32 *start, int32 *stride, int32 *end, VOIDP data) |
| |
| static intn | SDreaddata (int32 sds_id, int32 *start, int32 *stride, int32 *end, VOIDP data) |
| |
| static intn | DFSDsetdims (intn rank, int32 dimsizes[]) |
| | Single file interface. More...
|
| |
| static intn | DFSDsetNT (int32 numbertype) |
| |
| static intn | DFSDsetdatastrs (const char *label, const char *unit, const char *format, const char *coordsys) |
| |
| static intn | DFSDsetrange (VOIDP maxi, VOIDP mini) |
| |
| static intn | DFSDadddata (const char *filename, intn rank, int32 dimsizes[], VOIDP data) |
| |
| static intn | DFSDputdata (const char *filename, intn rank, int32 dimsizes[], VOIDP data) |
| |
A class to serialize HDF calls for multithreaded apps.
Since the HDF4 libraries aren't thread-safe, it's necessary to make sure that two threads don't use HDF routines concurrently. This class starts an I/O thread and passes HDF commands to it. It also provides a few utility functions, and supports caching of open file descriptors.
Definition at line 56 of file Rocin/include/HDF4.h.