Panda3D

pStatClientVersion.h
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.h
10 * @author drose
11 * @date 2001-05-21
12 */
13
14 #ifndef PSTATCLIENTVERSION_H
15 #define PSTATCLIENTVERSION_H
16
17 #include "pandabase.h"
18
19 #include "referenceCount.h"
20 #include "pointerTo.h"
21
22 /**
23 * Records the version number of a particular client. Normally this will be
24 * the same as get_current_pstat_major/minor_version().
25 */
26 class EXPCL_PANDA_PSTATCLIENT PStatClientVersion : public ReferenceCount {
27 public:
28 PStatClientVersion();
29
30 INLINE int get_major_version() const;
31 INLINE int get_minor_version() const;
32
33 INLINE void set_version(int major_version, int minor_version);
34
35 INLINE bool is_at_least(int major_version, int minor_version) const;
36
37 private:
38 int _major_version;
39 int _minor_version;
40 };
41
42 #include "pStatClientVersion.I"
43
44 #endif
PStatClientVersion
Records the version number of a particular client.
Definition: pStatClientVersion.h:26
ReferenceCount
A base class for all things that want to be reference-counted.
Definition: referenceCount.h:38
pStatClientVersion.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pointerTo.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
referenceCount.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.