ocssw
V2022
|
#include <assert.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "epr_api.h"
#include "epr_core.h"
#include "epr_string.h"
#include "epr_ptrarray.h"
#include "epr_swap.h"
#include "epr_field.h"
#include "epr_record.h"
#include "epr_param.h"
#include "epr_dsd.h"
#include "epr_msph.h"
#include "epr_band.h"
#include "epr_bitmask.h"
#include "epr_dddb.h"
Go to the source code of this file.
Functions | |
EPR_SRecordInfo * | epr_create_record_info (const char *dataset_name, EPR_SPtrArray *field_infos) |
void | epr_free_record_info (EPR_SRecordInfo *record_info) |
EPR_SRecordInfo * | epr_get_record_info (EPR_SDatasetId *dataset_id) |
EPR_SRecordInfo * | epr_read_record_info (EPR_SProductId *product_id, EPR_SDatasetId *dataset_id) |
EPR_SRecord * | epr_create_record_from_info (EPR_SRecordInfo *record_info) |
const EPR_SField * | epr_get_field_at (const EPR_SRecord *record, epr_uint field_index) |
epr_uint | epr_get_num_fields (const EPR_SRecord *record) |
void | epr_free_record (EPR_SRecord *record) |
Function Documentation
◆ epr_create_record_from_info()
EPR_SRecord* epr_create_record_from_info | ( | EPR_SRecordInfo * | record_info | ) |
Reads the record information with the given file path and returns the poiter at it.
- Parameters
-
product_id the the product file identifier dataset_name the name of the dataset db_file_istream the DB-table file identifier
- Returns
- the the pointer at the record information. Creates a new record instance from the dataset specified by the given dataset name.
- Parameters
-
the pointer at the record information. must not be NULL
- Returns
- the new record instance or
NULL
if an error occured.
Definition at line 315 of file epr_record.c.
◆ epr_create_record_info()
EPR_SRecordInfo* epr_create_record_info | ( | const char * | dataset_name, |
EPR_SPtrArray * | field_infos | ||
) |
Creates a new record_info for the record by the given dataset name.
- Parameters
-
dataset_name the name of the dataset, to which the record belongs to, must not be NULL
field_infos the pointer at the strucrure with information of all fields wich belong to record, must not be NULL
- Returns
- the new record instance or
NULL
if an error occured.
Definition at line 61 of file epr_record.c.
◆ epr_free_record_info()
void epr_free_record_info | ( | EPR_SRecordInfo * | record_info | ) |
Frees the memory allocated by the given record_info.
After calling this function the give record_info pointer gets invalid and should not be used anymore.
- Parameters
-
record_info the record to be released, if NULL
the function immediately returns
Definition at line 109 of file epr_record.c.
◆ epr_get_record_info()
EPR_SRecordInfo* epr_get_record_info | ( | EPR_SDatasetId * | dataset_id | ) |
Returns information about the structure of the records contained in a dataset specified by the given dataset_id
.
- Parameters
-
dataset_id the the dataset identifier
- Returns
- the the pointer for the record structure information.
Definition at line 151 of file epr_record.c.
◆ epr_read_record_info()
EPR_SRecordInfo* epr_read_record_info | ( | EPR_SProductId * | product_id, |
EPR_SDatasetId * | dataset_id | ||
) |
Definition at line 190 of file epr_record.c.