pStatClientVersion.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. #ifndef PSTATCLIENTVERSION_H
  15. #define PSTATCLIENTVERSION_H
  16. #include "pandabase.h"
  17. #include "referenceCount.h"
  18. #include "pointerTo.h"
  19. ////////////////////////////////////////////////////////////////////
  20. // Class : PStatClientVersion
  21. // Description : Records the version number of a particular client.
  22. // Normally this will be the same as
  23. // get_current_pstat_major/minor_version().
  24. ////////////////////////////////////////////////////////////////////
  25. class EXPCL_PANDA_PSTATCLIENT PStatClientVersion : public ReferenceCount {
  26. public:
  27. PStatClientVersion();
  28. INLINE int get_major_version() const;
  29. INLINE int get_minor_version() const;
  30. INLINE void set_version(int major_version, int minor_version);
  31. INLINE bool is_at_least(int major_version, int minor_version) const;
  32. private:
  33. int _major_version;
  34. int _minor_version;
  35. };
  36. #include "pStatClientVersion.I"
  37. #endif