Panda3D
 All Classes Functions Variables Enumerations
pStatClientVersion.h
1 // Filename: pStatClientVersion.h
2 // Created by: drose (21May01)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef PSTATCLIENTVERSION_H
16 #define PSTATCLIENTVERSION_H
17 
18 #include "pandabase.h"
19 
20 #include "referenceCount.h"
21 #include "pointerTo.h"
22 
23 ////////////////////////////////////////////////////////////////////
24 // Class : PStatClientVersion
25 // Description : Records the version number of a particular client.
26 // Normally this will be the same as
27 // get_current_pstat_major/minor_version().
28 ////////////////////////////////////////////////////////////////////
29 class EXPCL_PANDA_PSTATCLIENT PStatClientVersion : public ReferenceCount {
30 public:
32 
33  INLINE int get_major_version() const;
34  INLINE int get_minor_version() const;
35 
36  INLINE void set_version(int major_version, int minor_version);
37 
38  INLINE bool is_at_least(int major_version, int minor_version) const;
39 
40 private:
41  int _major_version;
42  int _minor_version;
43 };
44 
45 #include "pStatClientVersion.I"
46 
47 #endif
48 
Records the version number of a particular client.
A base class for all things that want to be reference-counted.