libsim Versione 7.2.1
Tipi di dato | Funzioni/Subroutine | Variabili
Riferimenti per il modulo file_utilities

Utilities for managing files. Continua...

Tipi di dato

type  csv_record
 Class for interpreting the records of a csv file. Continua...
 
interface  csv_record_addfield
 Methods for successively adding fields to a csv_record object. Continua...
 
interface  csv_record_addfield_miss
 Methods for successively adding fields to a csv_record object. Continua...
 
interface  csv_record_getfield
 Methods for successively obtaining the fields of a csv_record object. Continua...
 
interface  delete
 Destructor for the class csv_record. Continua...
 
interface  init
 Constructor for the class csv_record. Continua...
 

Funzioni/Subroutine

integer function getunit ()
 Returns the number of a Fortran input/output unit currently unused.
 
character(len=512) function get_package_filepath (filename, filetype)
 Looks for a specific file for the libsim package.
 
integer function open_package_file (filename, filetype)
 Opens a specific file for the libsim package.
 
subroutine, private csv_record_init (this, record, csep, cquote, nfield)
 Initialise a csv_record object.
 
subroutine, private csv_record_delete (this)
 Destroy the csv_record object, freeing allocated memory.
 
subroutine csv_record_rewind (this)
 Rewind the pointer in order to allow rescan or rewrite of the same record.
 
subroutine, private csv_record_addfield_char (this, field, force_quote)
 Add a field from a CHARACTER variable to the csv record this.
 
subroutine, private csv_record_addfield_char_miss (this, field, force_quote)
 Add a field from a CHARACTER variable to the csv record this.
 
subroutine, private csv_record_addfield_int (this, field, form, force_quote)
 Add a field from an INTEGER variable to the csv record this.
 
subroutine, private csv_record_addfield_int_miss (this, field, force_quote)
 Add a field from an INTEGER variable to the csv record this.
 
subroutine, private csv_record_addfield_real (this, field, form, force_quote)
 Add a field from a REAL variable to the csv record this.
 
subroutine, private csv_record_addfield_real_miss (this, field, force_quote)
 Add a field from a REAL variable to the csv record this.
 
subroutine, private csv_record_addfield_double (this, field, form, force_quote)
 Add a field from a DOUBLE PRECISION variable to the csv record this.
 
subroutine, private csv_record_addfield_double_miss (this, field, force_quote)
 Add a field from a DOUBLE PRECISION variable to the csv record this.
 
subroutine, private csv_record_addfield_csv_record (this, record)
 Add a full csv_record object to the csv record this.
 
character(len=this%cursor) function csv_record_getrecord (this, nfield)
 Return current csv-coded record as a CHARACTER variable, ready to be written to a file.
 
subroutine, private csv_record_getfield_char (this, field, flen, ier)
 Returns next field from the record this as a CHARACTER variable.
 
subroutine, private csv_record_getfield_int (this, field, ier)
 Returns next field from the record this as an INTEGER variable.
 
subroutine, private csv_record_getfield_real (this, field, ier)
 Returns next field from the record this as a REAL variable.
 
subroutine, private csv_record_getfield_double (this, field, ier)
 Returns next field from the record this as a DOUBLE PRECISION variable.
 
logical function csv_record_end (this)
 Tells whether end of record was reached (.TRUE.) or there are still some fields left (.FALSE.).
 

Variabili

integer, parameter filetype_data = 1
 Data file requested.
 
integer, parameter filetype_config = 2
 Configuration file requested.
 

Descrizione dettagliata

Utilities for managing files.

This module is a collection of generic utilities for managing files. A group of utilities is dedicated to locating and opening configuration files in standard directories or in directories specified by environmental variables. The module also contains the class csv_record for creating and interpreting the records of a csv file.


Generated with Doxygen.