Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | Object | |||
integer, | intent(in) | :: | Number | |||
integer, | intent(out) | :: | NumAlpha | |||
integer, | intent(out) | :: | NumNumbers | |||
integer, | intent(out) | :: | Status |
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.
SUBROUTINE TellMeHowManyObjectItemArgs(Object,Number,NumAlpha,NumNumbers,Status)
! SUBROUTINE INFORMATION:
! AUTHOR Linda K. Lawrie
! DATE WRITTEN September 1997
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine returns the number of arguments (alpha and numeric) for
! the referenced 'number' Object.
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
CHARACTER(len=*), INTENT(IN) :: Object
INTEGER, INTENT(IN) :: Number
INTEGER, INTENT(OUT) :: NumAlpha
INTEGER, INTENT(OUT) :: NumNumbers
INTEGER, INTENT(OUT) :: Status
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER Count
INTEGER LoopIndex
CHARACTER(len=MaxObjectNameLength) ObjectWord
Count=0
Status=-1
DO LoopIndex=1,NumIDFRecords
IF (SameString(IDFRecords(LoopIndex)%Name,Object)) THEN
Count=Count+1
IF (Count == Number) THEN
! Read this one
CALL GetObjectItemfromFile(LoopIndex,ObjectWord,NumAlpha=NumAlpha,NumNumeric=NumNumbers)
Status=1
EXIT
ENDIF
ENDIF
END DO
RETURN
END SUBROUTINE TellMeHowManyObjectItemArgs