dm_json_from Interface

public interface dm_json_from

Generic derived type to JSON converter.


Module Procedures

private function json_from_beat(beat) result(json)

Returns beat in JSON format.

Arguments

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

Beat type.

Return Value character(len=:), allocatable

Alloctable JSON string.

private function json_from_beats(beats) result(json)

Returns array of beats in JSON format.

Arguments

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

Array of beat types.

Return Value character(len=:), allocatable

Allocatable JSON string.

private function json_from_data_point(data_point) result(json)

Returns data point in JSON format.

Arguments

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

Data point type.

Return Value character(len=:), allocatable

Alloctable JSON string.

private function json_from_data_points(data_points) result(json)

Returns array of data points in JSON format.

Arguments

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

Data points array.

Return Value character(len=:), allocatable

Allocatable JSON string.

private function json_from_log(log) result(json)

Returns log in JSON format.

Arguments

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

Log type.

Return Value character(len=:), allocatable

Alloctable JSON string.

private function json_from_logs(logs) result(json)

Returns array of logs in JSON format.

Arguments

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

Array of log types.

Return Value character(len=:), allocatable

Allocatable JSON string.

private function json_from_node(node) result(json)

Returns node in JSON format.

Arguments

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

Node type.

Return Value character(len=:), allocatable

Alloctable JSON string.

private function json_from_nodes(nodes) result(json)

Returns array of nodes in JSON format.

Arguments

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

Array of node types.

Return Value character(len=:), allocatable

Allocatable JSON string.

private function json_from_observ(observ) result(json)

JSON encoding of given observation type (for poor people).

Arguments

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

Observation data.

Return Value character(len=:), allocatable

Alloctable JSON string.

private function json_from_observs(observs) result(json)

Returns array of observations in JSON format.

Arguments

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

Array of observations.

Return Value character(len=:), allocatable

Allocatable JSON string.

private function json_from_sensor(sensor) result(json)

Returns sensor in JSON format.

Arguments

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

Sensor type.

Return Value character(len=:), allocatable

Alloctable JSON string.

private function json_from_sensors(sensors) result(json)

Returns array of sensors in JSON format.

Arguments

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

Array of sensors.

Return Value character(len=:), allocatable

Allocatable JSON string.

private function json_from_target(target) result(json)

Returns target in JSON format.

Arguments

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

Sensor type.

Return Value character(len=:), allocatable

Alloctable JSON string.

private function json_from_targets(targets) result(json)

Returns array of targets in JSON format.

Arguments

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

Array of targets.

Return Value character(len=:), allocatable

Allocatable JSON string.