dm_csv_read Interface

public interface dm_csv_read

Generic derived type from CSV reader.


Module Procedures

private function csv_read_log(log, unit, separator, quote) result(rc)

Reads log from file or standard input. If no separator character is passed, the default one will be used (comma). If a quote character is given, separators within quoted strings will be ignored.

Arguments

Type IntentOptional Attributes Name
type(log_type), intent(out) :: log

Log type.

integer, intent(in), optional :: unit

File unit.

character(len=1), intent(in), optional :: separator

CSV separator.

character(len=1), intent(in), optional :: quote

CSV quote character.

Return Value integer

private function csv_read_node(node, unit, separator, quote) result(rc)

Reads node from file or standard input. If no separator character is passed, the default one will be used (comma). If a quote character is given, separators within quoted strings will be ignored.

Arguments

Type IntentOptional Attributes Name
type(node_type), intent(out) :: node

Node type.

integer, intent(in), optional :: unit

File unit.

character(len=1), intent(in), optional :: separator

CSV separator.

character(len=1), intent(in), optional :: quote

CSV quote character.

Return Value integer

private function csv_read_observ(observ, unit, separator, quote) result(rc)

Reads observation from file or standard input. If no separator character is passed, the default one will be used (comma). If a quote character is given, separators within quoted strings will be ignored.

Arguments

Type IntentOptional Attributes Name
type(observ_type), intent(out) :: observ

Observation type.

integer, intent(in), optional :: unit

File unit.

character(len=1), intent(in), optional :: separator

CSV separator.

character(len=1), intent(in), optional :: quote

CSV quote character.

Return Value integer

private function csv_read_sensor(sensor, unit, separator, quote) result(rc)

Reads sensor from file or standard input. If no separator character is passed, the default one will be used (comma). If a quote character is given, separators within quoted strings will be ignored.

Arguments

Type IntentOptional Attributes Name
type(sensor_type), intent(out) :: sensor

Sensor type.

integer, intent(in), optional :: unit

File unit.

character(len=1), intent(in), optional :: separator

CSV separator.

character(len=1), intent(in), optional :: quote

CSV quote character.

Return Value integer

private function csv_read_target(target, unit, separator, quote) result(rc)

Reads target from file or standard input. If no separator character is passed, the default one will be used (comma). If a quote character is given, separators within quoted strings will be ignored.

Arguments

Type IntentOptional Attributes Name
type(target_type), intent(out) :: target

Target type.

integer, intent(in), optional :: unit

File unit.

character(len=1), intent(in), optional :: separator

CSV separator.

character(len=1), intent(in), optional :: quote

CSV quote character.

Return Value integer