gelibver.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 2015 Autodesk, Inc. All rights reserved.
  4. //
  5. // Use of this software is subject to the terms of the Autodesk license
  6. // agreement provided at the time of installation or download, or which
  7. // otherwise accompanies this software in either electronic or hard copy form.
  8. //
  9. //////////////////////////////////////////////////////////////////////////////
  10. //
  11. // DESCRIPTION:
  12. //
  13. // This file contains the functionality for managing versions of
  14. // gelib.
  15. //
  16. //////////////////////////////////////////////////////////////////////////////
  17. #ifndef AC_GELIBVERSION_H
  18. #define AC_GELIBVERSION_H
  19. #include "adesk.h"
  20. #include "gedll.h"
  21. #pragma pack (push, 8)
  22. // Current image version.
  23. //
  24. #define IMAGE_MAJOR_VER 2
  25. #define IMAGE_MINOR_VER 0
  26. #define IMAGE_CORRECTIVE_VER 0
  27. #define IMAGE_INTERNAL_VER 0
  28. class
  29. GE_DLLEXPIMPORT
  30. AcGeLibVersion {
  31. public:
  32. // Constructors.
  33. //
  34. AcGeLibVersion();
  35. AcGeLibVersion(const AcGeLibVersion&);
  36. AcGeLibVersion(Adesk::UInt8 major, Adesk::UInt8 minor,
  37. Adesk::UInt8 corrective,
  38. Adesk::UInt8 internal_version);
  39. // Inquiry functions.
  40. //
  41. Adesk::UInt8 majorVersion () const;
  42. Adesk::UInt8 minorVersion () const;
  43. Adesk::UInt8 correctiveVersion () const;
  44. Adesk::UInt8 schemaVersion () const;
  45. // Set functions.
  46. //
  47. AcGeLibVersion& setMajorVersion (Adesk::UInt8 val);
  48. AcGeLibVersion& setMinorVersion (Adesk::UInt8 val);
  49. AcGeLibVersion& setCorrectiveVersion (Adesk::UInt8 val);
  50. AcGeLibVersion& setSchemaVersion (Adesk::UInt8 val);
  51. // Comparisons
  52. //
  53. Adesk::Boolean operator == (const AcGeLibVersion&) const;
  54. Adesk::Boolean operator != (const AcGeLibVersion&) const;
  55. Adesk::Boolean operator < (const AcGeLibVersion&) const;
  56. Adesk::Boolean operator <= (const AcGeLibVersion&) const;
  57. Adesk::Boolean operator > (const AcGeLibVersion&) const;
  58. Adesk::Boolean operator >= (const AcGeLibVersion&) const;
  59. // Relased version objects.
  60. // gelib release 0 --- End of 1995.
  61. //
  62. static const AcGeLibVersion kRelease0_95;
  63. // gelib r14 release.
  64. //
  65. static const AcGeLibVersion kReleaseSed;
  66. // gelib r15 release.
  67. //
  68. static const AcGeLibVersion kReleaseTah;
  69. private:
  70. Adesk::UInt8 mVersion[10];
  71. };
  72. #pragma pack (pop)
  73. #endif