KIM API V2
kim_sem_ver_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_sem_ver_get_sem_ver, &
41  kim_sem_ver_is_less_than, &
42  kim_sem_ver_parse_sem_ver
43 
44  interface
45  subroutine kim_sem_ver_get_sem_ver(version)
46  use, intrinsic :: iso_c_binding
47  implicit none
48  character(len=*), intent(out) :: version
49  end subroutine kim_sem_ver_get_sem_ver
50 
51  subroutine kim_sem_ver_is_less_than(version_a, version_b, is_less_than, &
52  ierr)
53  use, intrinsic :: iso_c_binding
54  implicit none
55  character(len=*), intent(in) :: version_a
56  character(len=*), intent(in) :: version_b
57  integer(c_int), intent(out) :: is_less_than
58  integer(c_int), intent(out) :: ierr
59  end subroutine kim_sem_ver_is_less_than
60 
61  subroutine kim_sem_ver_parse_sem_ver(version, major, minor, patch, &
62  prerelease, build_metadata, ierr)
63  use, intrinsic :: iso_c_binding
64  implicit none
65  character(len=*), intent(in) :: version
66  integer(c_int), intent(out) :: major
67  integer(c_int), intent(out) :: minor
68  integer(c_int), intent(out) :: patch
69  character(len=*), intent(out) :: prerelease
70  character(len=*), intent(out) :: build_metadata
71  integer(c_int), intent(out) :: ierr
72  end subroutine kim_sem_ver_parse_sem_ver
73  end interface
74 end module kim_sem_ver_module