| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- // Filename: pStatClientVersion.h
- // Created by: drose (21May01)
- //
- ////////////////////////////////////////////////////////////////////
- //
- // 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."
- //
- ////////////////////////////////////////////////////////////////////
- #ifndef PSTATCLIENTVERSION_H
- #define PSTATCLIENTVERSION_H
- #include "pandabase.h"
- #include "referenceCount.h"
- #include "pointerTo.h"
- ////////////////////////////////////////////////////////////////////
- // Class : PStatClientVersion
- // Description : Records the version number of a particular client.
- // Normally this will be the same as
- // get_current_pstat_major/minor_version().
- ////////////////////////////////////////////////////////////////////
- class EXPCL_PANDA_PSTATCLIENT PStatClientVersion : public ReferenceCount {
- public:
- PStatClientVersion();
- INLINE int get_major_version() const;
- INLINE int get_minor_version() const;
- INLINE void set_version(int major_version, int minor_version);
- INLINE bool is_at_least(int major_version, int minor_version) const;
- private:
- int _major_version;
- int _minor_version;
- };
- #include "pStatClientVersion.I"
- #endif
|