Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | ObjectWord | |||
integer, | intent(out) | :: | NumArgs | |||
logical, | intent(out), | DIMENSION(:) | :: | AlphaorNumeric | ||
logical, | intent(out), | DIMENSION(:) | :: | RequiredFields | ||
integer, | intent(out) | :: | MinNumFields |
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 GetObjectDefInIDD(ObjectWord,NumArgs,AlphaorNumeric,RequiredFields,MinNumFields)
! SUBROUTINE INFORMATION:
! AUTHOR Linda K. Lawrie
! DATE WRITTEN May 1998
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine returns the "definition" of an Object from the IDD. This is
! the "maximum" definition with total number of arguments, and whether each argument
! is "alpha" or "numeric".
! METHODOLOGY EMPLOYED:
! Essentially allows outside access to an internal variable of the InputProcessor.
! Used primarily by utility programs that use the InputProcessor outside of the
! "true" EnergyPlus code.
! REFERENCES:
! na
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
CHARACTER(len=*), INTENT(IN) :: ObjectWord ! Object for definition
INTEGER, INTENT(OUT) :: NumArgs ! How many arguments (max) this Object can have
LOGICAL, INTENT(OUT), DIMENSION(:) :: AlphaorNumeric ! Array designating Alpha (true) or Numeric (false) for each
! argument
LOGICAL, INTENT(OUT), DIMENSION(:) :: RequiredFields ! Array designating RequiredFields (true) for each argument
INTEGER, INTENT(OUT) :: MinNumFields ! Minimum Number of Fields to be returned to Get routines
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER Which ! to determine which object definition to use
IF (SortedIDD) THEN
Which=FindItemInSortedList(ObjectWord,ListOfObjects,NumObjectDefs)
IF (Which /= 0) Which=iListofObjects(Which)
ELSE
Which=FindItemInList(ObjectWord,ListOfObjects,NumObjectDefs)
ENDIF
NumArgs=ObjectDef(Which)%NumParams
AlphaorNumeric(1:NumArgs)=ObjectDef(Which)%AlphaorNumeric(1:NumArgs)
RequiredFields(1:NumArgs)=ObjectDef(Which)%ReqField(1:NumArgs)
MinNumFields=ObjectDef(Which)%MinNumFields
RETURN
END SUBROUTINE GetObjectDefInIDD