OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
Writing to a file or standard output
Collaboration diagram for Writing to a file or standard output:

Functions

void epr_print_record (const EPR_SRecord *record, FILE *ostream)
 
void epr_print_field (const EPR_SField *field, FILE *ostream)
 
void epr_print_element (const EPR_SRecord *record, epr_uint field_index, epr_uint element_index, FILE *ostream)
 
void epr_dump_record (const EPR_SRecord *record)
 
void epr_dump_field (const EPR_SField *field)
 
void epr_dump_element (const EPR_SRecord *record, epr_uint field_index, epr_uint element_index)
 

Detailed Description

This group of functions is for writing an object to a file or standard output.

An object can be:

  • record
  • field
  • field element

If FILE* istream is given, the ASCII file will be outputed, else printed to standard output device.

In case record and/or field:

Parameters
recordthe record, must not be NULL
fieldthe field, must not be NULL

In case field element:

Parameters
recordthe record, must not be NULL
field_indexthe index of field in the given record
element_indexthe index of element in the given field
ostreamthe identifier of the output file.

Function Documentation

◆ epr_dump_element()

void epr_dump_element ( const EPR_SRecord *  record,
epr_uint  field_index,
epr_uint  element_index 
)

Dumps the element content to stdout.

Parameters
recordthe pointer to the element to be printed out.

Definition at line 161 of file epr_dump.c.

◆ epr_dump_field()

void epr_dump_field ( const EPR_SField *  field)

Dumps the field content to stdout.

Parameters
fieldthe pointer to the field to be printed out

Definition at line 75 of file epr_dump.c.

◆ epr_dump_record()

void epr_dump_record ( const EPR_SRecord *  record)

Dumps the record content to stdout.

Parameters
recordthe pointer to the record to be printed out.

Definition at line 45 of file epr_dump.c.

◆ epr_print_element()

void epr_print_element ( const EPR_SRecord *  record,
epr_uint  field_index,
epr_uint  element_index,
FILE *  ostream 
)

Dumps the element content to an output FILE stream..

Parameters
recordthe pointer to the element to be written out.

Definition at line 172 of file epr_dump.c.

◆ epr_print_field()

void epr_print_field ( const EPR_SField *  field,
FILE *  ostream 
)

Gets the field content to output FILE stream.

Parameters
fieldthe pointer to the field to be printed out
ostreamthe identifier of the output file.

Definition at line 86 of file epr_dump.c.

◆ epr_print_record()

void epr_print_record ( const EPR_SRecord *  record,
FILE *  ostream 
)

Dumps the record content to an output FILE stream.

Parameters
recordthe pointer to the record to be printed out.
ostreamthe identifier of the output file.

Definition at line 56 of file epr_dump.c.