Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | opString |
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.
INTEGER FUNCTION lookupOperator(opString)
! SUBROUTINE INFORMATION:
! AUTHOR Jason Glazer of GARD Analytics, Inc.
! DATE WRITTEN May 2004
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! METHODOLOGY EMPLOYED:
! REFERENCES:
! na
! USE STATEMENTS:
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
CHARACTER(len=*), INTENT(IN) :: opString
! na
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
IF (SameString(opString,'Sum')) THEN
lookupOperator = opSum
ELSE IF (SameString(opString,'MULTIPLY')) THEN
lookupOperator = opMULTIPLY
ELSE IF (SameString(opString,'MULT')) THEN
lookupOperator = opMULTIPLY
ELSE IF (SameString(opString,'SUBTRACT')) THEN
lookupOperator = opSUBTRACT
ELSE IF (SameString(opString,'SUBT')) THEN
lookupOperator = opSUBTRACT
ELSE IF (SameString(opString,'DIVIDE')) THEN
lookupOperator = opDIVIDE
ELSE IF (SameString(opString,'DIV')) THEN
lookupOperator = opDIVIDE
ELSE IF (SameString(opString,'ABSOLUTE')) THEN
lookupOperator = opABSOLUTE
ELSE IF (SameString(opString,'ABS')) THEN
lookupOperator = opABSOLUTE
ELSE IF (SameString(opString,'INTEGER')) THEN
lookupOperator = opINTEGER
ELSE IF (SameString(opString,'INT')) THEN
lookupOperator = opINTEGER
ELSE IF (SameString(opString,'SIGN')) THEN
lookupOperator = opSIGN
ELSE IF (SameString(opString,'ROUND')) THEN
lookupOperator = opROUND
ELSE IF (SameString(opString,'Maximum')) THEN
lookupOperator = opMAXIMUM
ELSE IF (SameString(opString,'MAX')) THEN
lookupOperator = opMAXIMUM
ELSE IF (SameString(opString,'MINIMUM')) THEN
lookupOperator = opMINIMUM
ELSE IF (SameString(opString,'MIN')) THEN
lookupOperator = opMINIMUM
ELSE IF (SameString(opString,'EXCEEDS')) THEN
lookupOperator = opEXCEEDS
ELSE IF (SameString(opString,'ANNUALMINIMUM')) THEN
lookupOperator = opANNUALMINIMUM
ELSE IF (SameString(opString,'ANMIN')) THEN
lookupOperator = opANNUALMINIMUM
ELSE IF (SameString(opString,'ANNUALMAXIMUM')) THEN
lookupOperator = opANNUALMAXIMUM
ELSE IF (SameString(opString,'ANMAX')) THEN
lookupOperator = opANNUALMAXIMUM
ELSE IF (SameString(opString,'ANNUALSUM')) THEN
lookupOperator = opANNUALSUM
ELSE IF (SameString(opString,'ANSUM')) THEN
lookupOperator = opANNUALSUM
ELSE IF (SameString(opString,'ANNUALAVERAGE')) THEN
lookupOperator = opANNUALAVERAGE
ELSE IF (SameString(opString,'ANAVG')) THEN
lookupOperator = opANNUALAVERAGE
ELSE IF (SameString(opString,'ANNUALOR')) THEN
lookupOperator = opANNUALOR
ELSE IF (SameString(opString,'ANOR')) THEN
lookupOperator = opANNUALOR
ELSE IF (SameString(opString,'ANNUALAND')) THEN
lookupOperator = opANNUALAND
ELSE IF (SameString(opString,'ANAND')) THEN
lookupOperator = opANNUALAND
ELSE IF (SameString(opString,'ANNUALMAXIMUMZERO')) THEN
lookupOperator = opANNUALMAXIMUMZERO
ELSE IF (SameString(opString,'ANMAXZ')) THEN
lookupOperator = opANNUALMAXIMUMZERO
ELSE IF (SameString(opString,'ANNUALMINIMUMZERO')) THEN
lookupOperator = opANNUALMINIMUMZERO
ELSE IF (SameString(opString,'ANMINZ')) THEN
lookupOperator = opANNUALMINIMUMZERO
ELSE IF (SameString(opString,'IF')) THEN
lookupOperator = opIF
ELSE IF (SameString(opString,'GREATERTHAN')) THEN
lookupOperator = opGREATERTHAN
ELSE IF (SameString(opString,'GT')) THEN
lookupOperator = opGREATERTHAN
ELSE IF (SameString(opString,'GREATEREQUAL')) THEN
lookupOperator = opGREATEREQUAL
ELSE IF (SameString(opString,'GE')) THEN
lookupOperator = opGREATEREQUAL
ELSE IF (SameString(opString,'LESSTHAN')) THEN
lookupOperator = opLESSTHAN
ELSE IF (SameString(opString,'LT')) THEN
lookupOperator = opLESSTHAN
ELSE IF (SameString(opString,'LESSEQUAL')) THEN
lookupOperator = opLESSEQUAL
ELSE IF (SameString(opString,'LE')) THEN
lookupOperator = opLESSEQUAL
ELSE IF (SameString(opString,'EQUAL')) THEN
lookupOperator = opEQUAL
ELSE IF (SameString(opString,'EQ')) THEN
lookupOperator = opEQUAL
ELSE IF (SameString(opString,'NOTEQUAL')) THEN
lookupOperator = opNOTEQUAL
ELSE IF (SameString(opString,'NE')) THEN
lookupOperator = opNOTEQUAL
ELSE IF (SameString(opString,'AND')) THEN
lookupOperator = opAND
ELSE IF (SameString(opString,'OR')) THEN
lookupOperator = opOR
ELSE IF (SameString(opString,'NOT')) THEN
lookupOperator = opNOT
ELSE IF (SameString(opString,'FROM')) THEN
lookupOperator = opNOOP
ELSE IF (SameString(opString,'ADD')) THEN
lookupOperator = opADD
ELSE
lookupOperator = 0
END IF
END FUNCTION lookupOperator