|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212 |
- module PermissionsVariables
- ! use CVoidEventHandlerCollection
- type::PermissionsType
- logical :: FillupHeadPermission = .false.
- ! type(VoidEventHandlerCollection) :: OnFillupHeadPermissionChange
- logical :: InstallFillupHeadPermission = .false.
- ! type(VoidEventHandlerCollection) :: OnInstallFillupHeadPermissionChange
- logical :: InstallMudBucketPermission = .false.
- ! type(VoidEventHandlerCollection) :: OnInstallMudBucketPermissionChange
- logical :: IrIbopPermission = .false.
- ! type(VoidEventHandlerCollection) :: OnIrIbopPermissionChange
- logical :: IrSafetyValvePermission = .false.
- ! type(VoidEventHandlerCollection) :: OnIrSafetyValvePermissionChange
- logical :: RemoveFillupHeadPermission = .false.
- ! type(VoidEventHandlerCollection) :: OnRemoveFillupHeadPermissionChange
- logical :: RemoveMudBucketPermission = .false.
- ! type(VoidEventHandlerCollection) :: OnRemoveMudBucketPermissionChange
- logical :: SwingDrillPermission = .false.
- ! type(VoidEventHandlerCollection) :: OnSwingDrillPermissionChange
- logical :: SwingOffPermission = .false.
- ! type(VoidEventHandlerCollection) :: OnSwingOffPermissionChange
- logical :: SwingTiltPermission = .false.
- ! type(VoidEventHandlerCollection) :: OnSwingTiltPermissionChange
- end type PermissionsType
-
- type(PermissionsType):: permissions
-
- contains
-
- subroutine Set_SwingTiltPermission(v)
- implicit none
- logical , intent(in) :: v
- #ifdef ExcludeExtraChanges
- if(permissions%SwingTiltPermission == v) return
- #endif
- permissions%SwingTiltPermission = v
- #ifdef deb
- print*, 'permissions%SwingTiltPermission=', permissions%SwingTiltPermission
- #endif
- !**call permissions%OnSwingTiltPermissionChange%RunAll()
- end subroutine
-
- logical function Get_SwingTiltPermission()
- implicit none
- Get_SwingTiltPermission = permissions%SwingTiltPermission
- end function
-
- subroutine Set_SwingOffPermission(v)
- implicit none
- logical , intent(in) :: v
- #ifdef ExcludeExtraChanges
- if(permissions%SwingOffPermission == v) return
- #endif
- permissions%SwingOffPermission = v
- #ifdef deb
- print*, 'permissions%SwingOffPermission=', permissions%SwingOffPermission
- #endif
- !**call permissions%OnSwingOffPermissionChange%RunAll()
- end subroutine
-
- logical function Get_SwingOffPermission()
- implicit none
- Get_SwingOffPermission = permissions%SwingOffPermission
- end function
-
- subroutine Set_SwingDrillPermission(v)
- implicit none
- logical , intent(in) :: v
- #ifdef ExcludeExtraChanges
- if(permissions%SwingDrillPermission == v) return
- #endif
- permissions%SwingDrillPermission = v
- #ifdef deb
- print*, 'permissions%SwingDrillPermission=', permissions%SwingDrillPermission
- #endif
- !**call permissions%OnSwingDrillPermissionChange%RunAll()
- end subroutine
-
- logical function Get_SwingDrillPermission()
- implicit none
- Get_SwingDrillPermission = permissions%SwingDrillPermission
- end function
-
- subroutine Set_RemoveMudBucketPermission(v)
- implicit none
- logical , intent(in) :: v
- #ifdef ExcludeExtraChanges
- if(permissions%RemoveMudBucketPermission == v) return
- #endif
- permissions%RemoveMudBucketPermission = v
- #ifdef deb
- print*, 'permissions%RemoveMudBucketPermission=', permissions%RemoveMudBucketPermission
- #endif
- !**call permissions%OnRemoveMudBucketPermissionChange%RunAll()
- end subroutine
-
- logical function Get_RemoveMudBucketPermission()
- implicit none
- Get_RemoveMudBucketPermission = permissions%RemoveMudBucketPermission
- end function
-
-
- subroutine Set_RemoveFillupHeadPermission(v)
- implicit none
- logical , intent(in) :: v
- #ifdef ExcludeExtraChanges
- if(permissions%RemoveFillupHeadPermission == v) return
- #endif
- permissions%RemoveFillupHeadPermission = v
- #ifdef deb
- print*, 'permissions%RemoveFillupHeadPermission=', permissions%RemoveFillupHeadPermission
- #endif
- !**call permissions%OnRemoveFillupHeadPermissionChange%RunAll()
- end subroutine
-
- logical function Get_RemoveFillupHeadPermission()
- implicit none
- Get_RemoveFillupHeadPermission = permissions%RemoveFillupHeadPermission
- end function
-
- subroutine Set_IrSafetyValvePermission(v)
- implicit none
- logical , intent(in) :: v
- #ifdef ExcludeExtraChanges
- if(permissions%IrSafetyValvePermission == v) return
- #endif
- permissions%IrSafetyValvePermission = v
- #ifdef deb
- print*, 'permissions%IrSafetyValvePermission=', permissions%IrSafetyValvePermission
- #endif
- !**call permissions%OnIrSafetyValvePermissionChange%RunAll()
- end subroutine
-
- logical function Get_IrSafetyValvePermission()
- implicit none
- Get_IrSafetyValvePermission = permissions%IrSafetyValvePermission
- end function
-
- subroutine Set_IrIbopPermission(v)
- implicit none
- logical , intent(in) :: v
- #ifdef ExcludeExtraChanges
- if(permissions%IrIbopPermission == v) return
- #endif
- permissions%IrIbopPermission = v
- #ifdef deb
- print*, 'permissions%IrIbopPermission=', permissions%IrIbopPermission
- #endif
- !**call permissions%OnIrIbopPermissionChange%RunAll()
- end subroutine
-
- logical function Get_IrIbopPermission()
- implicit none
- Get_IrIbopPermission = permissions%IrIbopPermission
- end function
-
-
- subroutine Set_InstallMudBucketPermission(v)
- implicit none
- logical , intent(in) :: v
- #ifdef ExcludeExtraChanges
- if(permissions%InstallMudBucketPermission == v) return
- #endif
- permissions%InstallMudBucketPermission = v
- #ifdef deb
- print*, 'permissions%InstallMudBucketPermission=', permissions%InstallMudBucketPermission
- #endif
- !**call permissions%OnInstallMudBucketPermissionChange%RunAll()
- end subroutine
-
- logical function Get_InstallMudBucketPermission()
- implicit none
- Get_InstallMudBucketPermission = permissions%InstallMudBucketPermission
- end function
-
- subroutine Set_InstallFillupHeadPermission(v)
- implicit none
- logical , intent(in) :: v
- #ifdef ExcludeExtraChanges
- if(permissions%InstallFillupHeadPermission == v) return
- #endif
- permissions%InstallFillupHeadPermission = v
- #ifdef deb
- print*, 'InstallFillupHeadPermission=', permissions%InstallFillupHeadPermission
- #endif
- !**call permissions%OnInstallFillupHeadPermissionChange%RunAll()
- end subroutine
-
- logical function Get_InstallFillupHeadPermission()
- implicit none
- Get_InstallFillupHeadPermission = permissions%InstallFillupHeadPermission
- end function
-
- subroutine Set_FillupHeadPermission(v)
- implicit none
- logical , intent(in) :: v
- #ifdef ExcludeExtraChanges
- if(permissions%FillupHeadPermission == v) return
- #endif
- permissions%FillupHeadPermission = v
- #ifdef deb
- print*, 'FillupHeadPermission=', permissions%FillupHeadPermission
- #endif
- !**call permissions%OnFillupHeadPermissionChange%RunAll()
- end subroutine
-
- logical function Get_FillupHeadPermission()
- implicit none
- Get_FillupHeadPermission = permissions%FillupHeadPermission
- end function
-
- end module
|