ocssw
V2022
|
Functions | |
const EPR_SField * | epr_get_field (const EPR_SRecord *record, const char *field_name) |
epr_uint | epr_get_num_fields (const EPR_SRecord *record) |
const EPR_SField * | epr_get_field_at (const EPR_SRecord *record, epr_uint field_index) |
const char * | epr_get_field_unit (const EPR_SField *field) |
const char * | epr_get_field_description (const EPR_SField *field) |
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) |
Detailed Description
Function Documentation
◆ epr_get_field()
Gets a field from the given record.
The field is here identified through the given name.
It contains the field info and all corresponding values.
- Parameters
-
record the record identifier, must not be NULL
field_name the the name of required field, must not be NULL
.
- Returns
- the field or
NULL
if an error occured.
Gets a full field from the given record.
The field is hier identified through the given name.
It contains the field info and all corresponding values.
- Parameters
-
record the record identifier, must not be NULL
field_name the the name of required field, must not be NULL
.
- Returns
- the field or
NULL
if an error occured.
Definition at line 247 of file epr_field.c.
◆ epr_get_field_at()
Gets a field at the specified position within the record.
- Parameters
-
record the record from the field shall be returned, must not be NULL
field_index the zero-based index (position within record) of the field
- Returns
- the field or
NULL
if an error occured.
Definition at line 360 of file epr_record.c.
◆ epr_get_field_description()
Gets the description of the field.
- Parameters
-
field field from which the description shall be returned, must not be NULL
- Returns
- the field description or
NULL
if an error occured.
Definition at line 326 of file epr_field.c.
◆ epr_get_field_name()
Gets the name of the field.
- Parameters
-
field field to be analysed, must not be NULL
- Returns
- the field name or
NULL
if an error occured.
Definition at line 289 of file epr_field.c.
◆ epr_get_field_num_elems()
Gets the number of elements of the field.
- Parameters
-
field field to be analysed, must not be NULL
- Returns
- the number of elements of the field or
0
if an error occured.
Definition at line 277 of file epr_field.c.
◆ epr_get_field_type()
EPR_EDataTypeId epr_get_field_type | ( | const EPR_SField * | field | ) |
Gets the type of the field.
- Parameters
-
field field to be analysed, must not be NULL
- Returns
- the field type or
0
if an error occured.
Definition at line 302 of file epr_field.c.
◆ epr_get_field_unit()
Gets the unit of the field.
- Parameters
-
field the field from which the unit shall be returned, must not be NULL
- Returns
- the field unit or
NULL
if an error occured.
Definition at line 314 of file epr_field.c.
◆ epr_get_num_fields()
Gets the number of fields contained in the given record.
- Parameters
-
record the record to be analysed, must not be NULL
- Returns
- the fields number or
0
if an error occured.
Definition at line 383 of file epr_record.c.