ocssw
V2022
|
Functions | |
EPR_SRecord * | epr_create_record (EPR_SDatasetId *dataset_id) |
EPR_SRecord * | epr_read_record (EPR_SDatasetId *dataset_id, epr_uint record_index, EPR_SRecord *record) |
void | epr_free_record (EPR_SRecord *record) |
Detailed Description
Function Documentation
◆ epr_create_record()
EPR_SRecord* epr_create_record | ( | EPR_SDatasetId * | dataset_id | ) |
Creates a new, empty record with a structure compatible with the dataset specified by dataset_id. Such a record is typically used in subsequent calls to epr_read_record.
- Parameters
-
dataset_id the dataset identifier, must not be NULL
- Returns
- the new record instance or
NULL
if an error occured.
Creates a new record for the dataset given by the specified dataset identifier.
Definition at line 241 of file epr_dataset.c.
◆ epr_free_record()
void epr_free_record | ( | EPR_SRecord * | record | ) |
Frees the memory allocated through the given record.
After calling this function the given record pointer becomes invalid and should not be used anymore.
Frees the memory allocated by the given record.
After calling this function the give record pointer gets invalid and should not be used anymore.
- Parameters
-
record the record to be released, if NULL
the function immediately returns
Definition at line 405 of file epr_record.c.
◆ epr_read_record()
EPR_SRecord* epr_read_record | ( | EPR_SDatasetId * | dataset_id, |
epr_uint | record_index, | ||
EPR_SRecord * | record | ||
) |
Reads a record of a dataset specified by dataset_id.
The record is identified through the given dataset identifier and the given zero-based record index. In order to reduce memory reallocation, a record (pre-) created by the function epr_create_record
can be passed to this function. Data is then read into this given record. If no record (NULL
) is given, the function initiates a new one. In both cases, the record in which the data is read into will be returned.
- Parameters
-
dataset_id the dataset identifier, must not be NULL
record_index the zero-based record index record a pre-created record to reduce memory reallocation, can be NULL
to let the function allocate a new record
- Returns
- the record in which the data has been read into or
NULL
if an error occured.
Reads a full record from ENVISAT product file.
Definition at line 269 of file epr_dataset.c.