KIM API V2
kim_support_status_module.f90
Go to the documentation of this file.
1 !
2 ! CDDL HEADER START
3 !
4 ! The contents of this file are subject to the terms of the Common Development
5 ! and Distribution License Version 1.0 (the "License").
6 !
7 ! You can obtain a copy of the license at
8 ! http://www.opensource.org/licenses/CDDL-1.0. See the License for the
9 ! specific language governing permissions and limitations under the License.
10 !
11 ! When distributing Covered Code, include this CDDL HEADER in each file and
12 ! include the License file in a prominent location with the name LICENSE.CDDL.
13 ! If applicable, add the following below this CDDL HEADER, with the fields
14 ! enclosed by brackets "[]" replaced with your own identifying information:
15 !
16 ! Portions Copyright (c) [yyyy] [name of copyright owner]. All rights reserved.
17 !
18 ! CDDL HEADER END
19 !
20 
21 !
22 ! Copyright (c) 2016--2018, Regents of the University of Minnesota.
23 ! All rights reserved.
24 !
25 ! Contributors:
26 ! Ryan S. Elliott
27 !
28 
29 !
30 ! Release: This file is part of the kim-api-v2.0.0-alpha.0 package.
31 !
32 
33 
35  use, intrinsic :: iso_c_binding
36  implicit none
37  private
38 
39  public &
40  kim_support_status_type, &
41  kim_support_status_from_string, &
42  operator (.eq.), &
43  operator (.ne.), &
44  kim_support_status_string, &
45 
50 
51  type, bind(c) :: kim_support_status_type
52  integer(c_int) :: support_status_id
53  end type kim_support_status_type
54 
55  type(kim_support_status_type), protected, &
56  bind(c, name="KIM_SUPPORT_STATUS_requiredByAPI") &
58  type(kim_support_status_type), protected, &
59  bind(c, name="KIM_SUPPORT_STATUS_notSupported") &
61  type(kim_support_status_type), protected, &
62  bind(c, name="KIM_SUPPORT_STATUS_required") &
64  type(kim_support_status_type), protected, &
65  bind(c, name="KIM_SUPPORT_STATUS_optional") &
67 
68  interface operator (.eq.)
69  logical function kim_support_status_equal(left, right)
70  use, intrinsic :: iso_c_binding
71  import kim_support_status_type
72  implicit none
73  type(kim_support_status_type), intent(in) :: left
74  type(kim_support_status_type), intent(in) :: right
75  end function kim_support_status_equal
76  end interface operator (.eq.)
77 
78  interface operator (.ne.)
79  logical function kim_support_status_not_equal(left, right)
80  use, intrinsic :: iso_c_binding
81  import kim_support_status_type
82  implicit none
83  type(kim_support_status_type), intent(in) :: left
84  type(kim_support_status_type), intent(in) :: right
85  end function kim_support_status_not_equal
86  end interface operator (.ne.)
87 
88  interface
89  subroutine kim_support_status_from_string(string, support_status)
90  import kim_support_status_type
91  implicit none
92  character(len=*), intent(in) :: string
93  type(kim_support_status_type), intent(out) :: support_status
94  end subroutine kim_support_status_from_string
95 
96  subroutine kim_support_status_string(support_status, string)
97  import kim_support_status_type
98  implicit none
99  type(kim_support_status_type), intent(in), value :: support_status
100  character(len=*), intent(out) :: string
101  end subroutine kim_support_status_string
102  end interface
103 end module kim_support_status_module
type(kim_support_status_type), public, protected kim_support_status_optional
type(kim_support_status_type), public, protected kim_support_status_required
type(kim_support_status_type), public, protected kim_support_status_required_by_api
type(kim_support_status_type), public, protected kim_support_status_not_supported