/** * PANDA 3D SOFTWARE * Copyright (c) Carnegie Mellon University. All rights reserved. * * All use of this software is subject to the terms of the revised BSD * license. You should have received a copy of this license along * with this source code in a file named "LICENSE." * * @file pStatClientVersion.I * @author drose * @date 2001-05-21 */ /** * */ INLINE int PStatClientVersion:: get_major_version() const { return _major_version; } /** * */ INLINE int PStatClientVersion:: get_minor_version() const { return _minor_version; } /** * */ INLINE void PStatClientVersion:: set_version(int major_version, int minor_version) { _major_version = major_version; _minor_version = minor_version; } /** * Returns true if the client version is at least the indicated major/minor * version number, false otherwise. */ INLINE bool PStatClientVersion:: is_at_least(int major_version, int minor_version) const { return (_major_version > major_version || (_major_version == major_version && _minor_version >= minor_version)); }