Low-level routines for reading/writing HDF5 files.
These routines are basic routines for accessing HDF5 files. The mid-level and high-level routines, which are based on these routines, are typically more convenient routines to use.
File/Group Routines | |
void | XLALH5FileClose (LALH5File UNUSED *file) |
Closes a LALH5File. More... | |
LALH5File * | XLALH5FileOpen (const char UNUSED *path, const char UNUSED *mode) |
Opens a LALH5File. More... | |
LALH5File * | XLALH5GroupOpen (LALH5File UNUSED *file, const char UNUSED *name) |
Opens a group in a LALH5File. More... | |
int | XLALH5FileCheckGroupExists (const LALH5File UNUSED *file, const char UNUSED *name) |
Checks for existence of a group in a LALH5File. More... | |
int | XLALH5FileCheckDatasetExists (const LALH5File UNUSED *file, const char UNUSED *name) |
Checks for existence of a dataset in a LALH5File. More... | |
int | XLALH5CheckGroupExists (LALH5File UNUSED *file, const char UNUSED *name) |
DEPRECATED: Checks for existence of a Group in a LALH5File object LALH5File. More... | |
size_t | XLALH5FileQueryNGroups (const LALH5File UNUSED *file) |
Gets the number of groups contained in a LALH5File. More... | |
int | XLALH5FileQueryGroupName (char UNUSED *name, size_t UNUSED size, const LALH5File UNUSED *file, int UNUSED pos) |
Gets the name of a group contained in a LALH5File. More... | |
size_t | XLALH5FileQueryNDatasets (const LALH5File UNUSED *file) |
Gets the number of datasets contained in a LALH5File. More... | |
int | XLALH5FileQueryDatasetName (char UNUSED *name, size_t UNUSED size, const LALH5File UNUSED *file, int UNUSED pos) |
Gets the name of a dataset contained in a LALH5File. More... | |
int | XLALH5FileGetDatasetNames (LALH5File UNUSED *file, char UNUSED ***names, UINT4 UNUSED *N) |
DEPRECATED: Gets dataset names from a LALH5File. More... | |
Dataset Routines | |
void | XLALH5DatasetFree (LALH5Dataset UNUSED *dset) |
Frees a LALH5Dataset. More... | |
LALH5Dataset * | XLALH5DatasetAlloc (LALH5File UNUSED *file, const char UNUSED *name, LALTYPECODE UNUSED dtype, UINT4Vector UNUSED *dimLength) |
Allocates a multi-dimensional LALH5Dataset. More... | |
LALH5Dataset * | XLALH5DatasetAlloc1D (LALH5File UNUSED *file, const char UNUSED *name, LALTYPECODE UNUSED dtype, size_t UNUSED length) |
Allocates a 1-dimensional LALH5Dataset. More... | |
LALH5Dataset * | XLALH5DatasetAllocStringData (LALH5File UNUSED *file, const char UNUSED *name, size_t UNUSED length) |
Allocates a variable-length string LALH5Dataset. More... | |
int | XLALH5DatasetWrite (LALH5Dataset UNUSED *dset, void UNUSED *data) |
Writes data to a LALH5Dataset. More... | |
LALH5Dataset * | XLALH5DatasetRead (LALH5File UNUSED *file, const char UNUSED *name) |
Reads a LALH5Dataset. More... | |
int | XLALH5DatasetCheckStringData (LALH5Dataset UNUSED *dset) |
Checks if a LALH5Dataset contains variable length string data. More... | |
size_t | XLALH5DatasetQueryNPoints (LALH5Dataset UNUSED *dset) |
Gets the number of points in a LALH5Dataset. More... | |
size_t | XLALH5DatasetQueryNBytes (LALH5Dataset UNUSED *dset) |
Gets the number of bytes in a LALH5Dataset. More... | |
LALTYPECODE | XLALH5DatasetQueryType (LALH5Dataset UNUSED *dset) |
Gets the type of data in a LALH5Dataset. More... | |
int | XLALH5DatasetQueryNDim (LALH5Dataset UNUSED *dset) |
Gets the number of dimensions of the dataspace in a LALH5Dataset. More... | |
UINT4Vector * | XLALH5DatasetQueryDims (LALH5Dataset UNUSED *dset) |
Gets the dimensions of the dataspace in a LALH5Dataset. More... | |
int | XLALH5DatasetQueryData (void UNUSED *data, LALH5Dataset UNUSED *dset) |
Gets the data contained in a LALH5Dataset. More... | |
Attribute Routines | |
These routines allow for reading or writing attributes to LALH5File or LALH5Dataset objects. To use these, the pointer to the object should be cast to a size_t num_file_attrs;
size_t num_dset_attrs;
num_dset_attrs = XLALH5AttributeQueryN((LALH5Generic)dset);
LALH5Dataset * XLALH5DatasetRead(LALH5File *file, const char *name) size_t XLALH5AttributeQueryN(const LALH5Generic object) LALH5File * XLALH5FileOpen(const char *path, const char *mode) Incomplete type for a pointer to an HDF5 file or group or dataset. Definition: H5FileIO.h:110 | |
size_t | XLALH5AttributeCheckExists (const LALH5Generic UNUSED object, const char UNUSED *name) |
Checks for existence of an attribute associated with a LALH5File or LALH5Dataset. More... | |
size_t | XLALH5AttributeQueryN (const LALH5Generic UNUSED object) |
Gets the number of attributes associated with a LALH5File or LALH5Dataset. More... | |
int | XLALH5AttributeQueryName (char UNUSED *name, size_t UNUSED size, const LALH5Generic UNUSED object, int UNUSED pos) |
Gets the name of an attribute associated with a LALH5File or LALH5Dataset. More... | |
int | XLALH5AttributeAddScalar (LALH5Generic UNUSED object, const char UNUSED *key, const void UNUSED *value, LALTYPECODE UNUSED dtype) |
Adds a scalar attribute to a LALH5File or LALH5Dataset. More... | |
int | XLALH5AttributeAddString (LALH5Generic UNUSED object, const char UNUSED *key, const char UNUSED *value) |
Adds a string attribute to a LALH5File or LALH5Dataset. More... | |
int | XLALH5AttributeAddLIGOTimeGPS (LALH5Generic UNUSED object, const char UNUSED *key, const LIGOTimeGPS UNUSED *value) |
Adds a LIGOTimeGPS attribute to a LALH5File or LALH5Dataset. More... | |
int | XLALH5AttributeAddEnumArray1D (LALH5Generic UNUSED object, const char UNUSED *enumnames[], const int UNUSED enumvals[], size_t UNUSED nenum, const char UNUSED *key, const int UNUSED value[], size_t UNUSED length) |
Adds a 1d enum array attribute to a LALH5File or LALH5Dataset. More... | |
LALTYPECODE | XLALH5AttributeQueryScalarType (const LALH5Generic UNUSED object, const char UNUSED *key) |
Gets the datatype of an attribute in a LALH5File or LALH5Dataset. More... | |
int | XLALH5AttributeQueryScalarValue (void UNUSED *value, const LALH5Generic UNUSED object, const char UNUSED *key) |
Gets the value of a scalar attribute in a LALH5File or LALH5Dataset. More... | |
int | XLALH5AttributeQueryStringValue (char UNUSED *value, size_t UNUSED size, const LALH5Generic UNUSED object, const char UNUSED *key) |
Gets the value of a string attribute in a LALH5File or LALH5Dataset. More... | |
LIGOTimeGPS * | XLALH5AttributeQueryLIGOTimeGPSValue (LIGOTimeGPS UNUSED *value, const LALH5Generic UNUSED object, const char UNUSED *key) |
Gets the value of a LIGOTimeGPS attribute in a LALH5File or LALH5Dataset. More... | |
size_t | XLALH5AttributeQueryEnumArray1DLength (const LALH5Generic UNUSED object, const char UNUSED *key) |
Gets the length of a 1D enum array attribute in a LALH5File or LALH5Dataset. More... | |
int | XLALH5AttributeQueryEnumArray1DValue (int UNUSED value[], const LALH5Generic UNUSED object, const char UNUSED *key) |
Gets the values in a 1D enum array attribute in a LALH5File or LALH5Dataset. More... | |
size_t | XLALH5AttributeQueryNEnum (const LALH5Generic UNUSED object, const char UNUSED *key) |
Gets the number of constants in an enum type associated with an attribute in a LALH5File or LALH5Dataset. More... | |
int | XLALH5AttributeQueryEnumName (char UNUSED *name, size_t UNUSED size, const LALH5Generic UNUSED object, const char UNUSED *key, int UNUSED pos) |
Gets the name of a constants in an enum type associated with an attribute in a LALH5File or LALH5Dataset. More... | |
int | XLALH5AttributeQueryEnumValue (const LALH5Generic UNUSED object, const char UNUSED *key, int UNUSED pos) |
Gets the value of a constants in an enum type associated with an attribute in a LALH5File or LALH5Dataset. More... | |
File Attribute Routines | |
| |
int | XLALH5FileAddScalarAttribute (LALH5File UNUSED *file, const char UNUSED *key, const void UNUSED *value, LALTYPECODE UNUSED dtype) |
DEPRECATED: Adds a scalar attribute to a LALH5File. More... | |
int | XLALH5FileGetAttributeNames (LALH5File UNUSED *file, char UNUSED ***names, UINT4 UNUSED *N) |
DEPRECATED: Gets attribute names from a LALH5File. More... | |
int | XLALH5FileAddStringAttribute (LALH5File UNUSED *file, const char UNUSED *key, const char UNUSED *value) |
DEPRECATED: Adds a string attribute to a LALH5File. More... | |
int | XLALH5FileAddLIGOTimeGPSAttribute (LALH5File UNUSED *file, const char UNUSED *key, const LIGOTimeGPS UNUSED *value) |
DEPRECATED: Adds a LIGOTimeGPS attribute to a LALH5File. More... | |
LALTYPECODE | XLALH5FileQueryScalarAttributeType (LALH5File UNUSED *file, const char UNUSED *key) |
DEPRECATED: Gets the datatype of an attribute in a LALH5File. More... | |
int | XLALH5FileQueryScalarAttributeValue (void UNUSED *value, LALH5File UNUSED *file, const char UNUSED *key) |
DEPRECATED: Gets the value of a scalar attribute in a LALH5File. More... | |
int | XLALH5FileQueryStringAttributeValue (char UNUSED *value, size_t UNUSED size, LALH5File UNUSED *file, const char UNUSED *key) |
DEPRECATED: Gets the value of a string attribute in a LALH5File. More... | |
LIGOTimeGPS * | XLALH5FileQueryLIGOTimeGPSAttributeValue (LIGOTimeGPS UNUSED *value, LALH5File UNUSED *file, const char UNUSED *key) |
DEPRECATED: Gets the value of a LIGOTimeGPS attribute in a LALH5File. More... | |
Dataset Attribute Routines | |
| |
int | XLALH5DatasetAddScalarAttribute (LALH5Dataset UNUSED *dset, const char UNUSED *key, const void UNUSED *value, LALTYPECODE UNUSED dtype) |
DEPRECATED: Adds a scalar attribute to a LALH5Dataset. More... | |
int | XLALH5DatasetAddStringAttribute (LALH5Dataset UNUSED *dset, const char UNUSED *key, const char UNUSED *value) |
DEPRECATED: Adds a string attribute to a LALH5Dataset. More... | |
int | XLALH5DatasetAddLIGOTimeGPSAttribute (LALH5Dataset UNUSED *dset, const char UNUSED *key, const LIGOTimeGPS UNUSED *value) |
DEPRECATED: Adds a LIGOTimeGPS attribute to a LALH5Dataset. More... | |
LALTYPECODE | XLALH5DatasetQueryScalarAttributeType (LALH5Dataset UNUSED *dset, const char UNUSED *key) |
DEPRECATED: Gets the datatype of an attribute in a LALH5Dataset. More... | |
int | XLALH5DatasetQueryScalarAttributeValue (void UNUSED *value, LALH5Dataset UNUSED *dset, const char UNUSED *key) |
DEPRECATED: Gets the value of a scalar attribute in a LALH5Dataset. More... | |
int | XLALH5DatasetQueryStringAttributeValue (char UNUSED *value, size_t UNUSED size, LALH5Dataset UNUSED *dset, const char UNUSED *key) |
DEPRECATED: Gets the value of a string attribute in a LALH5Dataset. More... | |
LIGOTimeGPS * | XLALH5DatasetQueryLIGOTimeGPSAttributeValue (LIGOTimeGPS UNUSED *value, LALH5Dataset UNUSED *dset, const char UNUSED *key) |
DEPRECATED: Gets the value of a LIGOTimeGPS attribute in a LALH5Dataset. More... | |
void XLALH5FileClose | ( | LALH5File UNUSED * | file | ) |
Closes a LALH5File.
This routine closes a LALH5File and deallocates resources associated with it. If the file was opened for writing, this routine also renames the temporary file as the actual file.
file | A pointer to a LALH5File structure to close. |
Definition at line 386 of file H5FileIOLowLevel.c.
LALH5File* XLALH5FileOpen | ( | const char UNUSED * | path, |
const char UNUSED * | mode | ||
) |
Opens a LALH5File.
Opens a HDF5 file with pathname path
and creates a LALH5File structure associated with it.
The mode
parameter points to a string that determines whether the file is being opened for reading and writing. Allowed strings are:
If a file is opened for writing then data is initially written to a temporary file, and this file is renamed once the LALH5File structure is closed with XLALH5FileClose().
path | Pointer to a string containing the path of the file to open. |
mode | Mode to open the file, either "r" or "w". |
NULL | An error occurred opening the file. |
Definition at line 444 of file H5FileIOLowLevel.c.
Opens a group in a LALH5File.
Opens a HDF5 group with name name
contained in the HDF5 file associated with the LALH5File file
. If the HDF5 file is being read, the specified group must exist in that file. If the HDF5 file is being written, the specified group is created within the file.
file | Pointer to a LALH5File structure in which to open the group. |
name | Pointer to a string with the name of the group to open. |
NULL | An error occurred opening the group. |
Definition at line 474 of file H5FileIOLowLevel.c.
int XLALH5FileCheckGroupExists | ( | const LALH5File UNUSED * | file, |
const char UNUSED * | name | ||
) |
Checks for existence of a group in a LALH5File.
Checks if group with name name
exists in the HDF5 file associated with the LALH5File file file
. If the group exists the return code is 1. If the group does not exist a return code value of 0 is used.
file | Pointer to a LALH5File structure to check for group. |
name | Pointer to a string with the name of the group to check. |
0 | Group does not exist or failure. |
1 | Group exists. |
Definition at line 524 of file H5FileIOLowLevel.c.
int XLALH5FileCheckDatasetExists | ( | const LALH5File UNUSED * | file, |
const char UNUSED * | name | ||
) |
Checks for existence of a dataset in a LALH5File.
Checks if dataset with name name
exists in the HDF5 file associated with the LALH5File file file
. If the dataset exists the return code is 1. If the dataset does not exist a return code value of 0 is used.
file | Pointer to a LALH5File structure to check for dataset. |
name | Pointer to a string with the name of the dataset to check. |
0 | Dataset does not exist or failure. |
1 | Dataset exists. |
Definition at line 552 of file H5FileIOLowLevel.c.
int XLALH5CheckGroupExists | ( | LALH5File UNUSED * | file, |
const char UNUSED * | name | ||
) |
DEPRECATED: Checks for existence of a Group in a LALH5File object LALH5File.
Checks if group with name exists
in the HDF5 files associated with the LALH5File file. If the group exists the return code is 1 if the group does not exist a return code value of 0 is used.
file | Pointer to a LALH5File structure to check for group in |
name | Pointer to a string with the name of the group to check. |
Definition at line 617 of file H5FileIOLowLevel.c.
size_t XLALH5FileQueryNGroups | ( | const LALH5File UNUSED * | file | ) |
Gets the number of groups contained in a LALH5File.
This routines returns the number of groups contained in a an LALH5File file
which can be either a file or a group. This routine does not recursively count subgroups of the groups found.
file | Pointer to a LALH5File file or group to be queried. |
-1 | Failure. |
Definition at line 646 of file H5FileIOLowLevel.c.
int XLALH5FileQueryGroupName | ( | char UNUSED * | name, |
size_t UNUSED | size, | ||
const LALH5File UNUSED * | file, | ||
int UNUSED | pos | ||
) |
Gets the name of a group contained in a LALH5File.
This routines gets the name of a group contained in a LALH5File file
which can be either a file or a group. The index pos
identifies which group's name is returned. The result is written into the buffer pointed to by name
, the size of which is size
bytes. If name
is NULL, no data is copied but the routine returns the length of the string. Therefore, this routine can be called once to determine the amount of memory required, the memory can be allocated, and then it can be called a second time to read the string. If the parameter size
is less than or equal to the string length then only $p size-1 bytes of the string are copied to the buffer name
.
name
should be allocated to be one byte larger. name | Pointer to a buffer into which the string will be written. |
size | Size in bytes of the buffer into which the string will be written. |
file | Pointer to a LALH5File file or group to be queried. |
pos | The index identifying which group contained in the file. |
0 | Success. |
-1 | Failure. |
Definition at line 698 of file H5FileIOLowLevel.c.
size_t XLALH5FileQueryNDatasets | ( | const LALH5File UNUSED * | file | ) |
Gets the number of datasets contained in a LALH5File.
This routines returns the number of datasets contained in a an LALH5File file
which can be either a file or a group.
file | Pointer to a LALH5File file or group to be queried. |
-1 | Failure. |
Definition at line 749 of file H5FileIOLowLevel.c.
int XLALH5FileQueryDatasetName | ( | char UNUSED * | name, |
size_t UNUSED | size, | ||
const LALH5File UNUSED * | file, | ||
int UNUSED | pos | ||
) |
Gets the name of a dataset contained in a LALH5File.
This routines gets the name of a dataset contained in a LALH5File file
which can be either a file or a group. The index pos
identifies which dataset's name is returned. The result is written into the buffer pointed to by name
, the size of which is size
bytes. If name
is NULL, no data is copied but the routine returns the length of the string. Therefore, this routine can be called once to determine the amount of memory required, the memory can be allocated, and then it can be called a second time to read the string. If the parameter size
is less than or equal to the string length then only $p size-1 bytes of the string are copied to the buffer name
.
name
should be allocated to be one byte larger. name | Pointer to a buffer into which the string will be written. |
size | Size in bytes of the buffer into which the string will be written. |
file | Pointer to a LALH5File file or group to be queried. |
pos | The index identifying which dataset contained in the file. |
0 | Success. |
-1 | Failure. |
Definition at line 801 of file H5FileIOLowLevel.c.
DEPRECATED: Gets dataset names from a LALH5File.
This routine returns the names of all datasets in a LALH5File.
names | Pointer a list of strings to be returned to the user. Memory should be freed by the caller. |
N | Pointer to a UINT4 where the number of datasets will be recorded |
file | LALH5File from which to read datasets |
0 | Success. |
-1 | Failure. |
Definition at line 857 of file H5FileIOLowLevel.c.
void XLALH5DatasetFree | ( | LALH5Dataset UNUSED * | dset | ) |
Frees a LALH5Dataset.
Closes a HDF5 dataset associated with the LALH5Dataset dset
and deallocates memory of the LALH5Dataset structure.
dset | Pointer to a LALH5Dataset structure to close. |
Definition at line 918 of file H5FileIOLowLevel.c.
LALH5Dataset* XLALH5DatasetAlloc | ( | LALH5File UNUSED * | file, |
const char UNUSED * | name, | ||
LALTYPECODE UNUSED | dtype, | ||
UINT4Vector UNUSED * | dimLength | ||
) |
Allocates a multi-dimensional LALH5Dataset.
Creates a new HDF5 dataset with name name
within a HDF5 file associated with the LALH5File file
structure and allocates a LALH5Dataset structure associated with the dataset. The type of data to be stored in the dataset is given by the LALTYPECODE
dtype
and the rank array dimensions of the dataset is given by the UINT4Vector dimLength
.
The LALH5File file
passed to this routine must be a file opened for writing.
file | Pointer to a LALH5File structure in which to create the dataset. |
name | Pointer to a string with the name of the dataset to create. |
dtype | LALTYPECODE value specifying the data type. |
dimLength | Pointer to a UINT4Vector specifying the dataspace dimensions. |
NULL | An error occurred creating the dataset. |
Definition at line 955 of file H5FileIOLowLevel.c.
LALH5Dataset* XLALH5DatasetAlloc1D | ( | LALH5File UNUSED * | file, |
const char UNUSED * | name, | ||
LALTYPECODE UNUSED | dtype, | ||
size_t UNUSED | length | ||
) |
Allocates a 1-dimensional LALH5Dataset.
Creates a new HDF5 dataset with name name
within a HDF5 file associated with the LALH5File file
structure and allocates a LALH5Dataset structure associated with the dataset. The type of data to be stored in the dataset is given by the LALTYPECODE
dtype
and the number of points in the dataset is given by the length
parameter.
The LALH5File file
passed to this routine must be a file opened for writing.
file | Pointer to a LALH5File structure in which to create the dataset. |
name | Pointer to a string with the name of the dataset to create. |
dtype | LALTYPECODE value specifying the data type. |
length | The number of points of data in the dataset. |
NULL | An error occurred creating the dataset. |
Definition at line 1039 of file H5FileIOLowLevel.c.
LALH5Dataset* XLALH5DatasetAllocStringData | ( | LALH5File UNUSED * | file, |
const char UNUSED * | name, | ||
size_t UNUSED | length | ||
) |
Allocates a variable-length string LALH5Dataset.
Creates a new HDF5 dataset with name name
within a HDF5 file associated with the LALH5File file
structure and allocates a LALH5Dataset structure associated with the dataset. The type of data to be stored in the dataset is variable length strings and the number of strings in the dataset is given by the length
parameter.
The LALH5File file
passed to this routine must be a file opened for writing.
file | Pointer to a LALH5File structure in which to create the dataset. |
name | Pointer to a string with the name of the dataset to create. |
length | The number of variable length strings in the dataset. |
NULL | An error occurred creating the dataset. |
Definition at line 1110 of file H5FileIOLowLevel.c.
int XLALH5DatasetWrite | ( | LALH5Dataset UNUSED * | dset, |
void UNUSED * | data | ||
) |
Writes data to a LALH5Dataset.
Writes the data contained in data
to a HDF5 dataset associated with the LALH5Dataset dset
structure.
dset | Pointer to a LALH5Dataset structure to which to write the data. |
data | Pointer to the data buffer to be written. |
0 | Success. |
-1 | Failure. |
Definition at line 1176 of file H5FileIOLowLevel.c.
LALH5Dataset* XLALH5DatasetRead | ( | LALH5File UNUSED * | file, |
const char UNUSED * | name | ||
) |
Reads a LALH5Dataset.
Opens an existing HDF5 dataset with name name
within a HDF5 file associated with the LALH5File file
structure and allocates a LALH5Dataset structure associated with the dataset.
The LALH5File file
passed to this routine must be a file opened for reading.
file | Pointer to a LALH5File structure containing the dataset to be opened. |
name | Pointer to a string with the name of the dataset to open. |
NULL | An error occurred creating the dataset. |
Definition at line 1206 of file H5FileIOLowLevel.c.
int XLALH5DatasetCheckStringData | ( | LALH5Dataset UNUSED * | dset | ) |
Checks if a LALH5Dataset contains variable length string data.
dset | Pointer to a LALH5Dataset to be checked. |
1 | LALH5Dataset is of variable length string type |
0 | LALH5Dataset is not of variable length string type |
-1 | Failure. |
Definition at line 1266 of file H5FileIOLowLevel.c.
size_t XLALH5DatasetQueryNPoints | ( | LALH5Dataset UNUSED * | dset | ) |
Gets the number of points in a LALH5Dataset.
dset | Pointer to a LALH5Dataset to be queried. |
(size_t)(-1) | Failure. |
Definition at line 1282 of file H5FileIOLowLevel.c.
size_t XLALH5DatasetQueryNBytes | ( | LALH5Dataset UNUSED * | dset | ) |
Gets the number of bytes in a LALH5Dataset.
dset | Pointer to a LALH5Dataset to be queried. |
(size_t)(-1) | Failure. |
Definition at line 1305 of file H5FileIOLowLevel.c.
LALTYPECODE XLALH5DatasetQueryType | ( | LALH5Dataset UNUSED * | dset | ) |
Gets the type of data in a LALH5Dataset.
dset | Pointer to a LALH5Dataset to be queried. |
LALTYPECODE
of the datatype in the HDF5 dataset associated with the specified LALH5Dataset. -1 | Failure. |
Definition at line 1331 of file H5FileIOLowLevel.c.
int XLALH5DatasetQueryNDim | ( | LALH5Dataset UNUSED * | dset | ) |
Gets the number of dimensions of the dataspace in a LALH5Dataset.
dset | Pointer to a LALH5Dataset to be queried. |
-1 | Failure. |
Definition at line 1353 of file H5FileIOLowLevel.c.
UINT4Vector* XLALH5DatasetQueryDims | ( | LALH5Dataset UNUSED * | dset | ) |
Gets the dimensions of the dataspace in a LALH5Dataset.
dset | Pointer to a LALH5Dataset to be queried. |
NULL | Failure. |
Definition at line 1376 of file H5FileIOLowLevel.c.
int XLALH5DatasetQueryData | ( | void UNUSED * | data, |
LALH5Dataset UNUSED * | dset | ||
) |
Gets the data contained in a LALH5Dataset.
This routine reads data from a HDF5 dataset associated with the LALH5Dataset dset
and stores the data in the buffer data
. This buffer should be sufficiently large to hold the entire contents of the dataset; this size can be determined with the routine XLALH5DatasetQueryNBytes(). If the dataset contains variable-length string data, data
should instead be a pointer to an array of length npoints of char* pointers where npoints can be determined with the routine XLALH5DatasetQueryNPoints(). In this case, each of the npoints strings will be allocated using LALMalloc().
data | Pointer to a memory in which to store the data. |
dset | Pointer to a LALH5Dataset from which to extract the data. |
0 | Success. |
-1 | Failure. |
Definition at line 1444 of file H5FileIOLowLevel.c.
size_t XLALH5AttributeCheckExists | ( | const LALH5Generic UNUSED | object, |
const char UNUSED * | name | ||
) |
Checks for existence of an attribute associated with a LALH5File or LALH5Dataset.
Checks if there is an attribute with name name
associated with an HDF5 object object
that is either a LALH5File or LALH5Dataset. If the attribute exists the return code is 1; if the dataset does not exist a return code value of 0 is used.
object | Pointer to a LALH5File or LALH5Dataset to check for attribute. |
name | Pointer to a string with the name of the attribute to check. |
0 | Attribute does not exist or failure. |
1 | Attribute exists. |
Definition at line 1518 of file H5FileIOLowLevel.c.
size_t XLALH5AttributeQueryN | ( | const LALH5Generic UNUSED | object | ) |
Gets the number of attributes associated with a LALH5File or LALH5Dataset.
This routines returns the number of attributes associated with an HDF5 object object
that is either a LALH5File or LALH5Dataset.
object | Pointer to a LALH5File or LALH5Dataset that will be queried. |
-1 | Failure. |
Definition at line 1574 of file H5FileIOLowLevel.c.
int XLALH5AttributeQueryName | ( | char UNUSED * | name, |
size_t UNUSED | size, | ||
const LALH5Generic UNUSED | object, | ||
int UNUSED | pos | ||
) |
Gets the name of an attribute associated with a LALH5File or LALH5Dataset.
This routines gets the name of an attributes associated with an HDF5 object object
that is either a LALH5File or LALH5Dataset. The index pos
identifies which attribute's name is returned. The result is written into the buffer pointed to by name
, the size of which is size
bytes. If name
is NULL, no data is copied but the routine returns the length of the string. Therefore, this routine can be called once to determine the amount of memory required, the memory can be allocated, and then it can be called a second time to read the string. If the parameter size
is less than or equal to the string length then only $p size-1 bytes of the string are copied to the buffer name
.
name
should be allocated to be one byte larger. name | Pointer to a buffer into which the string will be written. |
size | Size in bytes of the buffer into which the string will be written. |
object | Pointer to a LALH5File or LALH5Dataset that will be queried. |
pos | The index identifying which attribute associated with the object. |
0 | Success. |
-1 | Failure. |
Definition at line 1621 of file H5FileIOLowLevel.c.
int XLALH5AttributeAddScalar | ( | LALH5Generic UNUSED | object, |
const char UNUSED * | key, | ||
const void UNUSED * | value, | ||
LALTYPECODE UNUSED | dtype | ||
) |
Adds a scalar attribute to a LALH5File or LALH5Dataset.
This routine adds a scalar-valued attribute with name key
and value given by the memory addressed by value
to a HDF5 object associated with the LALH5File or LALH5Dataset object
. The data type of the scalar value is given by the LALTYPECODE
dtype
.
object | Pointer to a LALH5File or LALH5Dataset to which the attribute will be added. |
key | Pointer to a string with the name of the new attribute. |
value | Pointer to the value of the scalar attribute to be added. |
dtype | LALTYPECODE value specifying the data type of the attribute. |
0 | Success. |
-1 | Failure. |
Definition at line 1671 of file H5FileIOLowLevel.c.
int XLALH5AttributeAddString | ( | LALH5Generic UNUSED | object, |
const char UNUSED * | key, | ||
const char UNUSED * | value | ||
) |
Adds a string attribute to a LALH5File or LALH5Dataset.
This routine adds a NUL-terminated variable-length string value
attribute with name key
to a HDF5 object associated with the LALH5File or LALH5Dataset object
.
object | Pointer to a LALH5File or LALH5Dataset to which the attribute will be added. |
key | Pointer to a string with the name of the new attribute. |
value | Pointer to a string with the value of the new attribute. |
0 | Success. |
-1 | Failure. |
Definition at line 1727 of file H5FileIOLowLevel.c.
int XLALH5AttributeAddLIGOTimeGPS | ( | LALH5Generic UNUSED | object, |
const char UNUSED * | key, | ||
const LIGOTimeGPS UNUSED * | value | ||
) |
Adds a LIGOTimeGPS attribute to a LALH5File or LALH5Dataset.
This routine adds a LIGOTimeGPS value
attribute with name key
to a HDF5 object associated with the LALH5File or LALH5Dataset object
.
object | Pointer to a LALH5File or LALH5Dataset to which the attribute will be added. |
key | Pointer to a string with the name of the new attribute. |
value | Pointer to a LIGOTimeGPS structure with the value of the new attribute. |
0 | Success. |
-1 | Failure. |
Definition at line 1788 of file H5FileIOLowLevel.c.
int XLALH5AttributeAddEnumArray1D | ( | LALH5Generic UNUSED | object, |
const char UNUSED * | enumnames[], | ||
const int UNUSED | enumvals[], | ||
size_t UNUSED | nenum, | ||
const char UNUSED * | key, | ||
const int UNUSED | value[], | ||
size_t UNUSED | length | ||
) |
Adds a 1d enum array attribute to a LALH5File or LALH5Dataset.
This routine adds the 1d enum array value
of length length
attribute with name key
to a HDF5 object associated with the LALH5File or LALH5Dataset object
. The names and values of the nenum
enumeration constants are provided in the arrays enumnames
and enumvals
respectively.
object | Pointer to a LALH5File or LALH5Dataset to which the attribute will be added. |
enumnames | Pointer to an array of names of the enum constants. |
enumvals | Pointer to an array of values of the enum constants. |
nenum | Number of enum constants. |
key | Pointer to a string with the name of the new attribute. |
value | Pointer to an array of enum values. |
length | Length of the array of enum values. |
0 | Success. |
-1 | Failure. |
Definition at line 1851 of file H5FileIOLowLevel.c.
LALTYPECODE XLALH5AttributeQueryScalarType | ( | const LALH5Generic UNUSED | object, |
const char UNUSED * | key | ||
) |
Gets the datatype of an attribute in a LALH5File or LALH5Dataset.
This routine queries the datatype of a scalar attribute with name key
in a HDF5 object associated with the LALH5File or LALH5Dataset object
.
object | Pointer to a LALH5File or LALH5Dataset to be queried. |
key | Pointer to a string with the name of the attribute to query. |
LALTYPECODE
value of the datatype of the scalar attribute. -1 | Failure. |
Definition at line 1912 of file H5FileIOLowLevel.c.
int XLALH5AttributeQueryScalarValue | ( | void UNUSED * | value, |
const LALH5Generic UNUSED | object, | ||
const char UNUSED * | key | ||
) |
Gets the value of a scalar attribute in a LALH5File or LALH5Dataset.
This routine queries the value of a scalar attribute with name key
in a HDF5 object associated with the LALH5File or LALH5Dataset object
. The value is stored in memory pointed to by the pointer value
.
value
. The calling routine must ensure that the memory addressed by the pointer value
is sufficient to hold the value in the attribute.value | Pointer to memory in which the value will be stored. |
object | Pointer to a LALH5File or LALH5Dataset to be queried. |
key | Pointer to a string with the name of the attribute to query. |
0 | Success. |
-1 | Failure. |
Definition at line 1982 of file H5FileIOLowLevel.c.
int XLALH5AttributeQueryStringValue | ( | char UNUSED * | value, |
size_t UNUSED | size, | ||
const LALH5Generic UNUSED | object, | ||
const char UNUSED * | key | ||
) |
Gets the value of a string attribute in a LALH5File or LALH5Dataset.
This routine queries the value of a string attribute with name key
in a HDF5 object associated with the LALH5File or LALH5Dataset object
. The result is written into the buffer pointed to by value
, the size of which is size
bytes. If value
is NULL, no data is copied but the routine returns the length of the string. Therefore, this routine can be called once to determine the amount of memory required, the memory can be allocated, and then it can be called a second time to read the string. If the parameter size
is less than or equal to the string length then only $p size-1 bytes of the string are copied to the buffer value
.
value
should be allocated to be one byte larger. value | Pointer to a buffer into which the string will be written. |
size | Size in bytes of the buffer into which the string will be written. |
object | Pointer to a LALH5File or LALH5Dataset to be queried. |
key | Pointer to a string with the name of the attribute to query. |
value
had size
been sufficiently large excluding the terminating NUL byte. -1 | Failure. |
Definition at line 2065 of file H5FileIOLowLevel.c.
LIGOTimeGPS* XLALH5AttributeQueryLIGOTimeGPSValue | ( | LIGOTimeGPS UNUSED * | value, |
const LALH5Generic UNUSED | object, | ||
const char UNUSED * | key | ||
) |
Gets the value of a LIGOTimeGPS attribute in a LALH5File or LALH5Dataset.
This routine queries the value of a LIGOTimeGPS attribute with name key
in a HDF5 object associated with the LALH5File or LALH5Dataset object
. The value is stored in memory pointed to by the pointer value
.
value | Pointer to a LIGOTimeGPS structure in which the attribute value will be stored. |
object | Pointer to a LALH5File or LALH5Dataset to be queried. |
key | Pointer to a string with the name of the attribute to query. |
NULL | Failure. |
Definition at line 2145 of file H5FileIOLowLevel.c.
size_t XLALH5AttributeQueryEnumArray1DLength | ( | const LALH5Generic UNUSED | object, |
const char UNUSED * | key | ||
) |
Gets the length of a 1D enum array attribute in a LALH5File or LALH5Dataset.
This routine queries the length of a 1D enum array with name key
in a HDF5 object associated with the LALH5File or LALH5Dataset object
.
object | Pointer to a LALH5File or LALH5Dataset to be queried. |
key | Pointer to a string with the name of the attribute to query. |
-1 | Failure. |
Definition at line 2265 of file H5FileIOLowLevel.c.
int XLALH5AttributeQueryEnumArray1DValue | ( | int UNUSED | value[], |
const LALH5Generic UNUSED | object, | ||
const char UNUSED * | key | ||
) |
Gets the values in a 1D enum array attribute in a LALH5File or LALH5Dataset.
This routine reads the values of a 1D enum array with name key
in a HDF5 object associated with the LALH5File or LALH5Dataset object
into the array value
.
value
. The calling routine must ensure that the memory addressed by the pointer value
is sufficient to hold the value in the attribute. The routine XLALH5AttributeQueryEnumArray1DLength() will yield the length that this array must have.value | Pointer to an array where then enum values will be stored. |
object | Pointer to a LALH5File or LALH5Dataset to be queried. |
key | Pointer to a string with the name of the attribute to query. |
0 | Success. |
-1 | Failure. |
Definition at line 2336 of file H5FileIOLowLevel.c.
size_t XLALH5AttributeQueryNEnum | ( | const LALH5Generic UNUSED | object, |
const char UNUSED * | key | ||
) |
Gets the number of constants in an enum type associated with an attribute in a LALH5File or LALH5Dataset.
This routine queries the number constants in an enum type associated with the attribute with name key
in a HDF5 object associated with the LALH5File or LALH5Dataset object
.
object | Pointer to a LALH5File or LALH5Dataset to be queried. |
key | Pointer to a string with the name of the attribute to query. |
-1 | Failure. |
Definition at line 2397 of file H5FileIOLowLevel.c.
int XLALH5AttributeQueryEnumName | ( | char UNUSED * | name, |
size_t UNUSED | size, | ||
const LALH5Generic UNUSED | object, | ||
const char UNUSED * | key, | ||
int UNUSED | pos | ||
) |
Gets the name of a constants in an enum type associated with an attribute in a LALH5File or LALH5Dataset.
This routine queries the name of a constant in an enum type associated with the attribute with name key
in a HDF5 object associated with the LALH5File or LALH5Dataset object
. The index pos
identifies which constant's name is returned. The result is written into the buffer pointed to by name
, the size of which is size
bytes. If name
is NULL, no data is copied but the routine returns the length of the string. Therefore, this routine can be called once to determine the amount of memory required, the memory can be allocated, and then it can be called a second time to read the string. If the parameter size
is less than or equal to the string length then only $p size-1 bytes of the string are copied to the buffer name
.
name
should be allocated to be one byte larger. name | Pointer to a buffer into which the string will be written. |
size | Size in bytes of the buffer into which the string will be written. |
object | Pointer to a LALH5File or LALH5Dataset to be queried. |
key | Pointer to a string with the name of the attribute to query. |
pos | The index identifying which enum constant. |
name
had size
been sufficiently large excluding the terminating NUL byte. -1 | Failure. |
Definition at line 2484 of file H5FileIOLowLevel.c.
int XLALH5AttributeQueryEnumValue | ( | const LALH5Generic UNUSED | object, |
const char UNUSED * | key, | ||
int UNUSED | pos | ||
) |
Gets the value of a constants in an enum type associated with an attribute in a LALH5File or LALH5Dataset.
This routine queries the value of a constant in an enum type associated with the attribute with name key
in a HDF5 object associated with the LALH5File or LALH5Dataset object
. The index pos
identifies which constant's name is returned.
object | Pointer to a LALH5File or LALH5Dataset to be queried. |
key | Pointer to a string with the name of the attribute to query. |
pos | The index identifying which enum constant. |
-1 | Failure. Note that -1 might also be a valid enum constant! |
Definition at line 2573 of file H5FileIOLowLevel.c.
int XLALH5FileAddScalarAttribute | ( | LALH5File UNUSED * | file, |
const char UNUSED * | key, | ||
const void UNUSED * | value, | ||
LALTYPECODE UNUSED | dtype | ||
) |
DEPRECATED: Adds a scalar attribute to a LALH5File.
This routine adds a scalar-valued attribute with name key
and value given by the memory addressed by value
to a HDF5 file associated with the LALH5File file
. The data type of the scalar value is given by the LALTYPECODE
dtype
.
file | Pointer to a LALH5File to which the attribute will be added. |
key | Pointer to a string with the name of the new attribute. |
value | Pointer to the value of the scalar attribute to be added. |
dtype | LALTYPECODE value specifying the data type of the attribute. |
0 | Success. |
-1 | Failure. |
Definition at line 2675 of file H5FileIOLowLevel.c.
int XLALH5FileGetAttributeNames | ( | LALH5File UNUSED * | file, |
char UNUSED *** | names, | ||
UINT4 UNUSED * | N | ||
) |
DEPRECATED: Gets attribute names from a LALH5File.
This routine returns the names of all attributes from a HDF5 Dataset
names | Pointer a list of strings to be returned to the user. Memory should be freed by the caller. |
file | Pointer to a LALH5File from which the attributes will be added. |
N | Pointer to a UINT4 where the number of datasets will be recorded |
0 | Success. |
-1 | Failure. |
Definition at line 2702 of file H5FileIOLowLevel.c.
int XLALH5FileAddStringAttribute | ( | LALH5File UNUSED * | file, |
const char UNUSED * | key, | ||
const char UNUSED * | value | ||
) |
DEPRECATED: Adds a string attribute to a LALH5File.
This routine adds a NUL-terminated variable-length string value
attribute with name key
to a HDF5 file associated with the LALH5File file
.
file | Pointer to a LALH5File to which the attribute will be added. |
key | Pointer to a string with the name of the new attribute. |
value | Pointer to a string with the value of the new attribute. |
0 | Success. |
-1 | Failure. |
Definition at line 2752 of file H5FileIOLowLevel.c.
int XLALH5FileAddLIGOTimeGPSAttribute | ( | LALH5File UNUSED * | file, |
const char UNUSED * | key, | ||
const LIGOTimeGPS UNUSED * | value | ||
) |
DEPRECATED: Adds a LIGOTimeGPS attribute to a LALH5File.
This routine adds a LIGOTimeGPS value
attribute with name key
to a HDF5 file associated with the LALH5File file
.
file | Pointer to a LALH5File to which the attribute will be added. |
key | Pointer to a string with the name of the new attribute. |
value | Pointer to a LIGOTimeGPS structure with the value of the new attribute. |
0 | Success. |
-1 | Failure. |
Definition at line 2780 of file H5FileIOLowLevel.c.
LALTYPECODE XLALH5FileQueryScalarAttributeType | ( | LALH5File UNUSED * | file, |
const char UNUSED * | key | ||
) |
DEPRECATED: Gets the datatype of an attribute in a LALH5File.
This routine queries the datatype of a scalar attribute with name key
in a HDF5 file associated with the LALH5File file
.
file | Pointer to a LALH5File to be queried. |
key | Pointer to a string with the name of the attribute to query. |
LALTYPECODE
value of the datatype of the scalar attribute. -1 | Failure. |
Definition at line 2806 of file H5FileIOLowLevel.c.
int XLALH5FileQueryScalarAttributeValue | ( | void UNUSED * | value, |
LALH5File UNUSED * | file, | ||
const char UNUSED * | key | ||
) |
DEPRECATED: Gets the value of a scalar attribute in a LALH5File.
This routine queries the value of a scalar attribute with name key
in a HDF5 file associated with the LALH5File file
. The value is stored in memory pointed to by the pointer value
.
value
. The calling routine must ensure that the memory addressed by the pointer value
is sufficient to hold the value in the attribute.value | Pointer to memory in which the value will be stored. |
file | Pointer to a LALH5File to be queried. |
key | Pointer to a string with the name of the attribute to query. |
0 | Success. |
-1 | Failure. |
Definition at line 2843 of file H5FileIOLowLevel.c.
int XLALH5FileQueryStringAttributeValue | ( | char UNUSED * | value, |
size_t UNUSED | size, | ||
LALH5File UNUSED * | file, | ||
const char UNUSED * | key | ||
) |
DEPRECATED: Gets the value of a string attribute in a LALH5File.
This routine queries the value of a string attribute with name key
in a HDF5 file associated with the LALH5File file
. The result is written into the buffer pointed to by value
, the size of which is size
bytes. If value
is NULL, no data is copied but the routine returns the length of the string. Therefore, this routine can be called once to determine the amount of memory required, the memory can be allocated, and then it can be called a second time to read the string. If the parameter size
is less than or equal to the string length then only $p size-1 bytes of the string are copied to the buffer value
.
value
should be allocated to be one byte larger.value | Pointer to a buffer into which the string will be written. |
size | Size in bytes of the buffer into which the string will be written. |
file | Pointer to a LALH5File to be queried. |
key | Pointer to a string with the name of the attribute to query. |
value
had size
been sufficiently large excluding the terminating NUL byte. -1 | Failure. |
Definition at line 2884 of file H5FileIOLowLevel.c.
LIGOTimeGPS* XLALH5FileQueryLIGOTimeGPSAttributeValue | ( | LIGOTimeGPS UNUSED * | value, |
LALH5File UNUSED * | file, | ||
const char UNUSED * | key | ||
) |
DEPRECATED: Gets the value of a LIGOTimeGPS attribute in a LALH5File.
This routine queries the value of a LIGOTimeGPS attribute with name key
in a HDF5 file associated with the LALH5File file
. The value is stored in memory pointed to by the pointer value
.
value | Pointer to a LIGOTimeGPS structure in which the attribute value will be stored. |
file | Pointer to a LALH5File to be queried. |
key | Pointer to a string with the name of the attribute to query. |
NULL | Failure. |
Definition at line 2917 of file H5FileIOLowLevel.c.
int XLALH5DatasetAddScalarAttribute | ( | LALH5Dataset UNUSED * | dset, |
const char UNUSED * | key, | ||
const void UNUSED * | value, | ||
LALTYPECODE UNUSED | dtype | ||
) |
DEPRECATED: Adds a scalar attribute to a LALH5Dataset.
This routine adds a scalar-valued attribute with name key
and value given by the memory addressed by value
to a HDF5 dataset associated with the LALH5Dataset dset
. The data type of the scalar value is given by the LALTYPECODE
dtype
.
dset | Pointer to a LALH5Dataset to which the attribute will be added. |
key | Pointer to a string with the name of the new attribute. |
value | Pointer to the value of the scalar attribute to be added. |
dtype | LALTYPECODE value specifying the data type of the attribute. |
0 | Success. |
-1 | Failure. |
Definition at line 2960 of file H5FileIOLowLevel.c.
int XLALH5DatasetAddStringAttribute | ( | LALH5Dataset UNUSED * | dset, |
const char UNUSED * | key, | ||
const char UNUSED * | value | ||
) |
DEPRECATED: Adds a string attribute to a LALH5Dataset.
This routine adds a NUL-terminated variable-length string value
attribute with name key
to a HDF5 dataset associated with the LALH5Dataset dset
.
dset | Pointer to a LALH5Dataset to which the attribute will be added. |
key | Pointer to a string with the name of the new attribute. |
value | Pointer to a string with the value of the new attribute. |
0 | Success. |
-1 | Failure. |
Definition at line 2988 of file H5FileIOLowLevel.c.
int XLALH5DatasetAddLIGOTimeGPSAttribute | ( | LALH5Dataset UNUSED * | dset, |
const char UNUSED * | key, | ||
const LIGOTimeGPS UNUSED * | value | ||
) |
DEPRECATED: Adds a LIGOTimeGPS attribute to a LALH5Dataset.
This routine adds a LIGOTimeGPS value
attribute with name key
to a HDF5 dataset associated with the LALH5Dataset dset
.
dset | Pointer to a LALH5Dataset to which the attribute will be added. |
key | Pointer to a string with the name of the new attribute. |
value | Pointer to a LIGOTimeGPS structure with the value of the new attribute. |
0 | Success. |
-1 | Failure. |
Definition at line 3016 of file H5FileIOLowLevel.c.
LALTYPECODE XLALH5DatasetQueryScalarAttributeType | ( | LALH5Dataset UNUSED * | dset, |
const char UNUSED * | key | ||
) |
DEPRECATED: Gets the datatype of an attribute in a LALH5Dataset.
This routine queries the datatype of a scalar attribute with name key
in a HDF5 dataset associated with the LALH5Dataset dset
.
dset | Pointer to a LALH5Dataset to be queried. |
key | Pointer to a string with the name of the attribute to query. |
LALTYPECODE
value of the datatype of the scalar attribute. -1 | Failure. |
Definition at line 3042 of file H5FileIOLowLevel.c.
int XLALH5DatasetQueryScalarAttributeValue | ( | void UNUSED * | value, |
LALH5Dataset UNUSED * | dset, | ||
const char UNUSED * | key | ||
) |
DEPRECATED: Gets the value of a scalar attribute in a LALH5Dataset.
This routine queries the value of a scalar attribute with name key
in a HDF5 dataset associated with the LALH5Dataset dset
. The value is stored in memory pointed to by the pointer value
.
value
. The calling routine must ensure that the memory addressed by the pointer value
is sufficient to hold the value in the attribute.value | Pointer to memory in which the value will be stored. |
dset | Pointer to a LALH5Dataset to be queried. |
key | Pointer to a string with the name of the attribute to query. |
0 | Success. |
-1 | Failure. |
Definition at line 3079 of file H5FileIOLowLevel.c.
int XLALH5DatasetQueryStringAttributeValue | ( | char UNUSED * | value, |
size_t UNUSED | size, | ||
LALH5Dataset UNUSED * | dset, | ||
const char UNUSED * | key | ||
) |
DEPRECATED: Gets the value of a string attribute in a LALH5Dataset.
This routine queries the value of a string attribute with name key
in a HDF5 dataset associated with the LALH5Dataset dset
. The result is written into the buffer pointed to by value
, the size of which is size
bytes. If value
is NULL, no data is copied but the routine returns the length of the string. Therefore, this routine can be called once to determine the amount of memory required, the memory can be allocated, and then it can be called a second time to read the string. If the parameter size
is less than or equal to the string length then only $p size-1 bytes of the string are copied to the buffer value
.
value
should be allocated to be one byte larger.value | Pointer to a buffer into which the string will be written. |
size | Size in bytes of the buffer into which the string will be written. |
dset | Pointer to a LALH5Dataset to be queried. |
key | Pointer to a string with the name of the attribute to query. |
value
had size
been sufficiently large excluding the terminating NUL byte. NULL | Failure. |
Definition at line 3120 of file H5FileIOLowLevel.c.
LIGOTimeGPS* XLALH5DatasetQueryLIGOTimeGPSAttributeValue | ( | LIGOTimeGPS UNUSED * | value, |
LALH5Dataset UNUSED * | dset, | ||
const char UNUSED * | key | ||
) |
DEPRECATED: Gets the value of a LIGOTimeGPS attribute in a LALH5Dataset.
This routine queries the value of a LIGOTimeGPS attribute with name key
in a HDF5 dataset associated with the LALH5Dataset dset
. The value is stored in memory pointed to by the pointer value
.
value | Pointer to a LIGOTimeGPS structure in which the attribute value will be stored. |
dset | Pointer to a LALH5Dataset to be queried. |
key | Pointer to a string with the name of the attribute to query. |
NULL | Failure. |
Definition at line 3153 of file H5FileIOLowLevel.c.