OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
epr_param.c File Reference
#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 dependency graph for epr_param.c:

Go to the source code of this file.

Functions

EPR_SParamElem * epr_create_param_elem (const char *param_name, int param_value)
 
EPR_SPtrArray * epr_create_param_table ()
 
void epr_free_param_table (EPR_SPtrArray *param_table)
 
void epr_free_param_elem (EPR_SParamElem *param_elem)
 
int epr_set_dyn_dddb_params (EPR_SProductId *product_id)
 

Function Documentation

◆ epr_create_param_elem()

EPR_SParamElem* epr_create_param_elem ( const char *  param_name,
int  param_value 
)

Creates a new element (pair 'name-value') for the parameter table.

Parameters
param_namethe name of the parameter,
param_valuethe value of this parameter,
Returns
the pointer at this element or NULL if an error occured.

Definition at line 46 of file epr_param.c.

◆ epr_create_param_table()

EPR_SPtrArray* epr_create_param_table ( )

Definition at line 70 of file epr_param.c.

◆ epr_free_param_elem()

void epr_free_param_elem ( EPR_SParamElem *  param_elem)

Frees the memory allocated by the given param_elem.

After calling this function the give record_info pointer gets invalid and should not be used anymore.

Parameters
param_tablethe table to be released, if NULL the function immediately returns

Definition at line 112 of file epr_param.c.

◆ epr_free_param_table()

void epr_free_param_table ( EPR_SPtrArray *  param_table)

Frees the memory allocated by the given param_table.

After calling this function the give record_info pointer gets invalid and should not be used anymore.

Parameters
param_tablethe table to be released, if NULL the function immediately returns

Definition at line 86 of file epr_param.c.

◆ epr_set_dyn_dddb_params()

int epr_set_dyn_dddb_params ( EPR_SProductId *  product_id)

Definition at line 126 of file epr_param.c.