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"
Go to the source code of this file.
Functions | |
EPR_SFieldInfo * | epr_create_field_info (EPR_EDataTypeId data_type_id, char *description, char *field_name, epr_uint num_elems, epr_uint num_bytes, epr_uint more_count, char *unit) |
void | epr_free_field_info (EPR_SFieldInfo *field_info) |
EPR_SField * | epr_create_field (EPR_SFieldInfo *field_info) |
void | epr_free_field (EPR_SField *field) |
const EPR_SField * | epr_get_field (const EPR_SRecord *record, const char *field_name) |
epr_uint | epr_get_field_num_elems (const EPR_SField *field) |
const char * | epr_get_field_name (const EPR_SField *field) |
EPR_EDataTypeId | epr_get_field_type (const EPR_SField *field) |
const char * | epr_get_field_unit (const EPR_SField *field) |
const char * | epr_get_field_description (const EPR_SField *field) |
Function Documentation
◆ epr_create_field()
EPR_SField* epr_create_field | ( | EPR_SFieldInfo * | field_info | ) |
Creates a new field instance belongs to the given record_info.
- Parameters
-
the pointer at the field information. must not be NULL
- Returns
- the new field instance or
NULL
if an error occured.
Definition at line 147 of file epr_field.c.
◆ epr_create_field_info()
EPR_SFieldInfo* epr_create_field_info | ( | EPR_EDataTypeId | data_type_id, |
char * | description, | ||
char * | field_name, | ||
epr_uint | num_elems, | ||
epr_uint | num_bytes, | ||
epr_uint | more_count, | ||
char * | unit | ||
) |
Creates the field information of the given record and returns the poiter at it.
- Parameters
-
data_type_id the data type identifier description the field description field_name the field name num_elems the number of field elements num_bytes the number of bytes in each element more_count the number of the element repetition unit the unit descrimtion (name)
- Returns
- the the pointer at the field information, or
NULL
if the file it is not enough memory for some field_info element.
Definition at line 52 of file epr_field.c.
◆ epr_free_field()
void epr_free_field | ( | EPR_SField * | field | ) |
Frees the memory allocated by the given 'field'.
After calling this function the give field pointer should not be used anymore.
- Parameters
-
field the field to be released
Definition at line 218 of file epr_field.c.
◆ epr_free_field_info()
void epr_free_field_info | ( | EPR_SFieldInfo * | field_info | ) |
Frees the memory allocated by the given 'field_info'.
After calling this function the give field_info pointer should not be used anymore.
- Parameters
-
field_info the field_info to be released
Definition at line 111 of file epr_field.c.