#include "alsutils/error/Exception.hpp"
#include <hdf5.h>
Go to the source code of this file.
◆ HDF5_MAKE_RESOURCE
#define HDF5_MAKE_RESOURCE |
( |
|
holder, |
|
|
|
expression, |
|
|
|
closer |
|
) |
| |
Value:{ \
auto hidValue = expression; \
if (hidValue < 0) { \
THROW("HDF5 error in running\n\t" << #expression \
<<"\n\n" << __FILE__ << ": " << __LINE__); \
} \
else { \
holder.reset(new HDF5Resource(hidValue, closer)); \
} \
}
Convience macro. Runs expression, test the return value Throws an exception if return value is negative
◆ HDF5_SAFE_CALL
#define HDF5_SAFE_CALL |
( |
|
x | ) |
|
Value:{\
if (x < 0) { \
THROW("HDF5 error, call looked like: " << #x); \
} \
}
This file contains various utility functions for HDF5