Panda3D
panda
src
pstatclient
pStatClientVersion.I
Go to the documentation of this file.
1
/**
2
* PANDA 3D SOFTWARE
3
* Copyright (c) Carnegie Mellon University. All rights reserved.
4
*
5
* All use of this software is subject to the terms of the revised BSD
6
* license. You should have received a copy of this license along
7
* with this source code in a file named "LICENSE."
8
*
9
* @file pStatClientVersion.I
10
* @author drose
11
* @date 2001-05-21
12
*/
13
14
/**
15
*
16
*/
17
INLINE
int
PStatClientVersion::
18
get_major_version()
const
{
19
return
_major_version;
20
}
21
22
/**
23
*
24
*/
25
INLINE
int
PStatClientVersion::
26
get_minor_version()
const
{
27
return
_minor_version;
28
}
29
30
/**
31
*
32
*/
33
INLINE
void
PStatClientVersion::
34
set_version(
int
major_version,
int
minor_version) {
35
_major_version = major_version;
36
_minor_version = minor_version;
37
}
38
39
/**
40
* Returns true if the client version is at least the indicated major/minor
41
* version number, false otherwise.
42
*/
43
INLINE
bool
PStatClientVersion::
44
is_at_least
(
int
major_version,
int
minor_version)
const
{
45
return
(_major_version > major_version ||
46
(_major_version == major_version && _minor_version >= minor_version));
47
}
PStatClientVersion::is_at_least
bool is_at_least(int major_version, int minor_version) const
Returns true if the client version is at least the indicated major/minor version number,...
Definition:
pStatClientVersion.I:44
Generated on Sun Dec 27 2020 13:23:15 for Panda3D by
1.8.20