Panda3D
|
00001 // Filename: pStatClientVersion.h 00002 // Created by: drose (21May01) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef PSTATCLIENTVERSION_H 00016 #define PSTATCLIENTVERSION_H 00017 00018 #include "pandabase.h" 00019 00020 #include "referenceCount.h" 00021 #include "pointerTo.h" 00022 00023 //////////////////////////////////////////////////////////////////// 00024 // Class : PStatClientVersion 00025 // Description : Records the version number of a particular client. 00026 // Normally this will be the same as 00027 // get_current_pstat_major/minor_version(). 00028 //////////////////////////////////////////////////////////////////// 00029 class EXPCL_PANDA_PSTATCLIENT PStatClientVersion : public ReferenceCount { 00030 public: 00031 PStatClientVersion(); 00032 00033 INLINE int get_major_version() const; 00034 INLINE int get_minor_version() const; 00035 00036 INLINE void set_version(int major_version, int minor_version); 00037 00038 INLINE bool is_at_least(int major_version, int minor_version) const; 00039 00040 private: 00041 int _major_version; 00042 int _minor_version; 00043 }; 00044 00045 #include "pStatClientVersion.I" 00046 00047 #endif 00048