Simulation Core
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

62 lines
1.7 KiB

  1. module CTdsElevatorModesEnumVariables
  2. use CVoidEventHandlerCollection
  3. implicit none
  4. integer :: TdsElevatorModes = 0
  5. public
  6. type(VoidEventHandlerCollection) :: OnTdsElevatorModesChange
  7. enum, bind(c)
  8. enumerator TDS_ELEVATOR_CONNECTION_NOTHING
  9. enumerator TDS_ELEVATOR_CONNECTION_STRING
  10. enumerator TDS_ELEVATOR_CONNECTION_SINGLE
  11. enumerator TDS_ELEVATOR_CONNECTION_STAND
  12. enumerator TDS_ELEVATOR_LATCH_STRING
  13. enumerator TDS_ELEVATOR_LATCH_SINGLE
  14. enumerator TDS_ELEVATOR_LATCH_STAND
  15. end enum
  16. private :: TdsElevatorModes
  17. contains
  18. subroutine Set_TdsElevatorModes(v)
  19. implicit none
  20. integer , intent(in) :: v
  21. #ifdef ExcludeExtraChanges
  22. if(TdsElevatorModes == v) return
  23. #endif
  24. TdsElevatorModes = v
  25. call OnTdsElevatorModesChange%RunAll()
  26. end subroutine
  27. integer function Get_TdsElevatorModes()
  28. implicit none
  29. Get_TdsElevatorModes = TdsElevatorModes
  30. end function
  31. subroutine Set_TdsElevatorModes_WN(v)
  32. !DEC$ ATTRIBUTES DLLEXPORT :: Set_TdsElevatorModes_WN
  33. !DEC$ ATTRIBUTES ALIAS: 'Set_TdsElevatorModes_WN' :: Set_TdsElevatorModes_WN
  34. implicit none
  35. integer , intent(in) :: v
  36. call Set_TdsElevatorModes(v)
  37. end subroutine
  38. integer function Get_TdsElevatorModes_WN()
  39. !DEC$ ATTRIBUTES DLLEXPORT :: Get_TdsElevatorModes_WN
  40. !DEC$ ATTRIBUTES ALIAS: 'Get_TdsElevatorModes_WN' :: Get_TdsElevatorModes_WN
  41. implicit none
  42. Get_TdsElevatorModes_WN = TdsElevatorModes
  43. end function
  44. end module CTdsElevatorModesEnumVariables