Nodes of different colours represent the following:
Solid arrows point from a parent (sub)module to the submodule which is descended from it. Dashed arrows point from a module being used to the module or program unit using it. Where possible, edges connecting nodes are given different colours to make them easier to distinguish in large graphs.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(ErlValueType), | intent(in) | :: | Value |
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed arrows point from an interface to procedures which implement that interface. This could include the module procedures in a generic interface or the implementation in a submodule of an interface in a parent module. Where possible, edges connecting nodes are given different colours to make them easier to distinguish in large graphs.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed arrows point from an interface to procedures which implement that interface. This could include the module procedures in a generic interface or the implementation in a submodule of an interface in a parent module. Where possible, edges connecting nodes are given different colours to make them easier to distinguish in large graphs.
FUNCTION ValueToString(Value) RESULT(String)
! FUNCTION INFORMATION:
! AUTHOR P. Ellis
! DATE WRITTEN Unknown
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS FUNCTION:
! <description>
! METHODOLOGY EMPLOYED:
! <description>
! REFERENCES:
! na
! USE STATEMENTS:
USE General, ONLY: TrimSigDigits
IMPLICIT NONE ! Enforce explicit typing of all variables
! FUNCTION ARGUMENT DEFINITIONS:
TYPE(ErlValueType), INTENT(IN) :: Value
CHARACTER(len=200) :: String
! FLOW:
String = ''
SELECT CASE (Value%Type)
CASE (ValueNumber)
IF (Value%Number == 0.0d0) THEN
String = '0.0'
ELSE
String=TrimSigDigits(Value%Number, 6) !(String)
END IF
CASE (ValueString)
String = Value%String
CASE (ValueArray)
! TBD
CASE (ValueError)
String = ' *** Error: '//TRIM(Value%Error)//' *** '
END SELECT
RETURN
END FUNCTION ValueToString