dm_csv_write Interface

public interface dm_csv_write

Generic derived type to CSV writer.


Module Procedures

private function csv_write_beat(beat, unit, header, separator) result(rc)

Writes beat to file or standard output.

Arguments

Type IntentOptional Attributes Name
type(beat_type), intent(inout) :: beat

Beat type.

integer, intent(in), optional :: unit

File unit.

logical, intent(in), optional :: header

CSV header flag.

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

CSV separator.

Return Value integer

private function csv_write_beats(beats, unit, header, separator) result(rc)

Writes beats to file or standard output.

Arguments

Type IntentOptional Attributes Name
type(beat_type), intent(inout) :: beats(:)

Beat array.

integer, intent(in), optional :: unit

File unit.

logical, intent(in), optional :: header

CSV header flag.

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

CSV separator.

Return Value integer

private function csv_write_data_point(data_point, unit, header, separator) result(rc)

Writes data point to file or standard output.

Arguments

Type IntentOptional Attributes Name
type(dp_type), intent(inout) :: data_point

Data point type.

integer, intent(in), optional :: unit

File unit.

logical, intent(in), optional :: header

CSV header flag.

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

CSV separator.

Return Value integer

private function csv_write_data_points(data_points, unit, header, separator) result(rc)

Writes data points to file or standard output.

Arguments

Type IntentOptional Attributes Name
type(dp_type), intent(inout) :: data_points(:)

Data point array.

integer, intent(in), optional :: unit

File unit.

logical, intent(in), optional :: header

CSV header flag.

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

CSV separator.

Return Value integer

private function csv_write_log(log, unit, header, separator) result(rc)

Writes log to file or standard output.

Arguments

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

Log type.

integer, intent(in), optional :: unit

File unit.

logical, intent(in), optional :: header

CSV header flag.

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

CSV field separator.

Return Value integer

private function csv_write_logs(logs, unit, header, separator) result(rc)

Writes logs to file or standard output.

Arguments

Type IntentOptional Attributes Name
type(log_type), intent(inout) :: logs(:)

Log array.

integer, intent(in), optional :: unit

File unit.

logical, intent(in), optional :: header

CSV header flag.

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

CSV field separator.

Return Value integer

private function csv_write_node(node, unit, header, separator) result(rc)

Writes node to file or standard output.

Arguments

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

Node type.

integer, intent(in), optional :: unit

File unit.

logical, intent(in), optional :: header

CSV header flag.

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

CSV separator.

Return Value integer

private function csv_write_nodes(nodes, unit, header, separator) result(rc)

Writes nodes to file or standard output.

Arguments

Type IntentOptional Attributes Name
type(node_type), intent(inout) :: nodes(:)

Node array.

integer, intent(in), optional :: unit

File unit.

logical, intent(in), optional :: header

CSV header flag.

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

CSV separator.

Return Value integer

private function csv_write_observ(observ, unit, header, separator) result(rc)

Writes observation to file or standard output.

Arguments

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

Observation type.

integer, intent(in), optional :: unit

File unit.

logical, intent(in), optional :: header

CSV header flag.

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

CSV separator.

Return Value integer

private function csv_write_observs(observs, unit, header, separator) result(rc)

Writes observations to file or standard output.

Arguments

Type IntentOptional Attributes Name
type(observ_type), intent(inout) :: observs(:)

Observation array.

integer, intent(in), optional :: unit

File unit.

logical, intent(in), optional :: header

CSV header flag.

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

CSV separator.

Return Value integer

private function csv_write_sensor(sensor, unit, header, separator) result(rc)

Write sensor to file or standard output.

Arguments

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

Sensor type.

integer, intent(in), optional :: unit

File unit.

logical, intent(in), optional :: header

CSV header flag.

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

CSV separator.

Return Value integer

private function csv_write_sensors(sensors, unit, header, separator) result(rc)

Writes sensors to file or standard output.

Arguments

Type IntentOptional Attributes Name
type(sensor_type), intent(inout) :: sensors(:)

Sensor array.

integer, intent(in), optional :: unit

File unit.

logical, intent(in), optional :: header

CSV header flag.

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

CSV separator.

Return Value integer

private function csv_write_target(target, unit, header, separator) result(rc)

Writes target to file or standard output.

Arguments

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

Target type.

integer, intent(in), optional :: unit

File unit.

logical, intent(in), optional :: header

CSV header flag.

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

CSV separator.

Return Value integer

private function csv_write_targets(targets, unit, header, separator) result(rc)

Writes targets to file or standard output.

Arguments

Type IntentOptional Attributes Name
type(target_type), intent(inout) :: targets(:)

Target array.

integer, intent(in), optional :: unit

File unit.

logical, intent(in), optional :: header

CSV header flag.

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

CSV separator.

Return Value integer