Simulation Core
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

CNearFloorConnection.f90 1.6 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. module CNearFloorConnection
  2. use CVoidEventHandlerCollection
  3. implicit none
  4. real :: NearFloorConnection = 0
  5. public
  6. type(VoidEventHandlerCollection) :: OnNearFloorConnectionChange
  7. private :: NearFloorConnection
  8. contains
  9. subroutine Set_NearFloorConnection(v)
  10. implicit none
  11. real , intent(in) :: v
  12. #ifdef ExcludeExtraChanges
  13. if(NearFloorConnection == v) return
  14. #endif
  15. NearFloorConnection = v
  16. #ifdef deb
  17. print*, 'NearFloorConnection=', NearFloorConnection
  18. #endif
  19. call OnNearFloorConnectionChange%RunAll()
  20. end subroutine
  21. real function Get_NearFloorConnection()
  22. implicit none
  23. Get_NearFloorConnection = NearFloorConnection
  24. !Get_NearFloorConnection = 4
  25. end function
  26. subroutine Set_NearFloorConnection_WN(v)
  27. !DEC$ ATTRIBUTES DLLEXPORT :: Set_NearFloorConnection_WN
  28. !DEC$ ATTRIBUTES ALIAS: 'Set_NearFloorConnection_WN' :: Set_NearFloorConnection_WN
  29. implicit none
  30. real , intent(in) :: v
  31. call Set_NearFloorConnection(v)
  32. end subroutine
  33. real function Get_NearFloorConnection_WN()
  34. !DEC$ ATTRIBUTES DLLEXPORT :: Get_NearFloorConnection_WN
  35. !DEC$ ATTRIBUTES ALIAS: 'Get_NearFloorConnection_WN' :: Get_NearFloorConnection_WN
  36. implicit none
  37. Get_NearFloorConnection_WN = NearFloorConnection
  38. !Get_NearFloorConnection_WN = 4
  39. end function
  40. subroutine Subscribe_NearFloorConnection()
  41. implicit none
  42. end subroutine
  43. end module CNearFloorConnection