1 #define CONCAT2x(a,b) a##b
2 #define CONCAT2(a,b) CONCAT2x(a,b)
4 #define VTYPE CONCAT2(TYPE,Vector)
5 #define STYPE CONCAT2(TYPE,FrequencySeries)
7 #define FILEWRITEFUNC CONCAT2(XLALH5FileWrite,STYPE)
8 #define FILEREADFUNC CONCAT2(XLALH5FileRead,STYPE)
10 #define DSETALLOCFUNC CONCAT2(XLALH5DatasetAlloc,VTYPE)
11 #define DSETREADFUNC CONCAT2(XLALH5DatasetRead,VTYPE)
40 if (
XLALUnitAsString(sampleUnits,
sizeof(sampleUnits), &series->sampleUnits) == NULL)
81 if ((
size_t)n >=
sizeof(series->name))
91 if ((
size_t)n >=
sizeof(sampleUnits) ||
XLALParseUnitString(&series->sampleUnits, sampleUnits) == NULL) {
LALH5Dataset * XLALH5DatasetRead(LALH5File *file, const char *name)
struct tagLALH5File LALH5File
Incomplete type for a HDF5 file.
struct tagLALH5Dataset LALH5Dataset
Incomplete type for a HDF5 dataset.
int XLALH5AttributeQueryStringValue(char *value, size_t size, const LALH5Generic object, const char *key)
int XLALH5AttributeAddLIGOTimeGPS(LALH5Generic object, const char *key, const LIGOTimeGPS *value)
void XLALH5DatasetFree(LALH5Dataset *dset)
int XLALH5AttributeAddString(LALH5Generic object, const char *key, const char *value)
LIGOTimeGPS * XLALH5AttributeQueryLIGOTimeGPSValue(LIGOTimeGPS *value, const LALH5Generic object, const char *key)
int XLALH5DatasetAddREAL8Attribute(LALH5Dataset *dset, const char *key, REAL8 value)
Adds a scalar attribute to a LALH5Dataset.
REAL8 XLALH5DatasetQueryREAL8AttributeValue(LALH5Dataset *dset, const char *key)
Gets the value of a scalar attribute in a LALH5Dataset.
LALUnit * XLALParseUnitString(LALUnit *output, const char *string)
Returns the pointer output upon return or a pointer to newly allocated memory if output was NULL; on ...
const LALUnit lalDimensionlessUnit
dimensionless units
char * XLALUnitAsString(char *string, UINT4 length, const LALUnit *input)
Returns the pointer to the input string, which is populated with the unit string if successful.
#define XLAL_ERROR_NULL(...)
Macro to invoke a failure from a XLAL routine returning a pointer.
#define XLAL_ERROR(...)
Macro to invoke a failure from a XLAL routine returning an integer.
#define XLAL_PRINT_WARNING(...)
Macro that will print a warning message with a standard format.
#define XLAL_IS_REAL8_FAIL_NAN(val)
Tests if val is a XLAL REAL8 failure NaN.
@ XLAL_ENOMEM
Memory allocation error.
@ XLAL_EFAULT
Invalid pointer.
@ XLAL_EFUNC
Internal function call failed bit: "or" this with existing error number.
@ XLAL_EINVAL
Invalid argument.
Incomplete type for a pointer to an HDF5 file or group or dataset.