OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
Collaboration diagram for Field Access:

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()

const EPR_SField* epr_get_field ( const EPR_SRecord *  record,
const char *  field_name 
)

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
recordthe record identifier, must not be NULL
field_namethe 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
recordthe record identifier, must not be NULL
field_namethe 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()

const EPR_SField* epr_get_field_at ( const EPR_SRecord *  record,
epr_uint  field_index 
)

Gets a field at the specified position within the record.

Parameters
recordthe record from the field shall be returned, must not be NULL
field_indexthe 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()

const char* epr_get_field_description ( const EPR_SField *  field)

Gets the description of the field.

Parameters
fieldfield 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()

const char* epr_get_field_name ( const EPR_SField *  field)

Gets the name of the field.

Parameters
fieldfield 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()

epr_uint epr_get_field_num_elems ( const EPR_SField *  field)

Gets the number of elements of the field.

Parameters
fieldfield 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
fieldfield 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()

const char* epr_get_field_unit ( const EPR_SField *  field)

Gets the unit of the field.

Parameters
fieldthe 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()

epr_uint epr_get_num_fields ( const EPR_SRecord *  record)

Gets the number of fields contained in the given record.

Parameters
recordthe 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.