AGX Dynamics  2.38.0.2
version.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2024. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
17 #ifndef AGX_VERSION_H
18 #define AGX_VERSION_H
19 
20 #include <agx/agxCore_export.h>
21 #include <agx/stdint.h>
22 #include <agx/agx_version.h>
23 #include <agx/Integer.h>
24 
25 extern "C" {
26 
28  extern AGXCORE_EXPORT agx::UInt32 AGX_CALC_VERSION( agx::UInt8 generation, agx::UInt8 major, agx::UInt8 minor, agx::UInt8 patch);
29 
32 
34  extern AGXCORE_EXPORT void AGX_CONVERT_VERSION( agx::UInt32 version, agx::UInt8& generation, agx::UInt8& major, agx::UInt8& minor, agx::UInt8& patch);
35 
37  extern AGXCORE_EXPORT const char* agxGetPythonVersion();
38 
40  extern AGXCORE_EXPORT const char* agxGetVersion(bool includeRevision=true);
41 
44 
47 
50 
53 
55  extern AGXCORE_EXPORT const char* agxGetRevision();
56 
58  extern AGXCORE_EXPORT const char* agxGetLibraryName();
59 
61  extern AGXCORE_EXPORT const char* agxGetCompanyName();
62 
68  extern AGXCORE_EXPORT const char* agxGetBuildDate( bool inIsoFormat = false );
69 
71  extern AGXCORE_EXPORT const char* agxGetBuildTime();
72 
74  extern AGXCORE_EXPORT const char* agxGetBuildType();
75 
77  extern AGXCORE_EXPORT const char* agxGetCppBuildFlags();
78 
80  extern AGXCORE_EXPORT const char* agxGetCBuildFlags();
81 
84 
87 }
88 
89 
92 
94 #define AGX_VERSION_LESS_THAN(GENERATION, MAJOR, MINOR, PATCH) \
95  ((AGX_GENERATION_VERSION<GENERATION) || (AGX_GENERATION_VERSION==GENERATION && (AGX_MAJOR_VERSION<MAJOR || (AGX_MAJOR_VERSION==MAJOR && (AGX_MINOR_VERSION<MINOR || (AGX_MINOR_VERSION==MINOR && AGX_PATCH_VERSION<PATCH) )))))
96 
98 #define AGX_VERSION_LESS_OR_EQUAL(GENERATION, MAJOR, MINOR, PATCH) \
99  ((AGX_GENERATION_VERSION<GENERATION) || (AGX_GENERATION_VERSION==GENERATION && (AGX_MAJOR_VERSION<MAJOR || (AGX_MAJOR_VERSION==MAJOR && (AGX_MINOR_VERSION<MINOR || (AGX_MINOR_VERSION==MINOR && AGX_PATCH_VERSION<=PATCH))))))
100 
102 #define AGX_VERSION_GREATER_OR_EQUAL(GENERATION, MAJOR, MINOR, PATCH) \
103  ((AGX_GENERATION_VERSION>GENERATION) || (AGX_GENERATION_VERSION==GENERATION && (AGX_MAJOR_VERSION>MAJOR) || (AGX_MAJOR_VERSION==MAJOR && (AGX_MINOR_VERSION>MINOR || (AGX_MINOR_VERSION==MINOR && AGX_PATCH_VERSION>=PATCH)))))
104 
106 #define AGX_VERSION_GREATER_THAN(GENERATION, MAJOR, MINOR, PATCH) \
107  ((AGX_GENERATION_VERSION>GENERATION) || (AGX_GENERATION_VERSION==GENERATION && (AGX_MAJOR_VERSION>MAJOR) || (AGX_MAJOR_VERSION==MAJOR && (AGX_MINOR_VERSION>MINOR || (AGX_MINOR_VERSION==MINOR && AGX_PATCH_VERSION>PATCH)))))
108 
109 #endif
110 
AGXCORE_EXPORT
#define AGXCORE_EXPORT
AGX_CONVERT_VERSION
AGXCORE_EXPORT void AGX_CONVERT_VERSION(agx::UInt32 version, agx::UInt8 &generation, agx::UInt8 &major, agx::UInt8 &minor, agx::UInt8 &patch)
Convert a 32 bit unsigned int with version encoding into generation, major, minor,...
agxGetGenerationVersion
AGXCORE_EXPORT agx::UInt8 agxGetGenerationVersion()
agxGetCompanyName
const AGXCORE_EXPORT char * agxGetCompanyName()
agxGetBuildType
const AGXCORE_EXPORT char * agxGetBuildType()
AGX_GET_VERSION
AGXCORE_EXPORT agx::UInt32 AGX_GET_VERSION()
agxGetMajorVersion
AGXCORE_EXPORT agx::UInt8 agxGetMajorVersion()
agxGetMinorVersion
AGXCORE_EXPORT agx::UInt8 agxGetMinorVersion()
agxGetRevision
const AGXCORE_EXPORT char * agxGetRevision()
agxGetSerializationVersion
AGXCORE_EXPORT agx::UInt16 agxGetSerializationVersion()
agxGetPatchVersion
AGXCORE_EXPORT agx::UInt8 agxGetPatchVersion()
agxGetLibraryName
const AGXCORE_EXPORT char * agxGetLibraryName()
Return the name of the library.
agx::UInt16
uint16_t UInt16
Definition: Integer.h:31
agx::UInt8
uint8_t UInt8
Definition: Integer.h:30
agxGetCppBuildFlags
const AGXCORE_EXPORT char * agxGetCppBuildFlags()
AGX_CALC_VERSION
AGXCORE_EXPORT agx::UInt32 AGX_CALC_VERSION(agx::UInt8 generation, agx::UInt8 major, agx::UInt8 minor, agx::UInt8 patch)
agxGetStorageStreamVersion
AGXCORE_EXPORT agx::UInt16 agxGetStorageStreamVersion()
Integer.h
stdint.h
agxGetPythonVersion
const AGXCORE_EXPORT char * agxGetPythonVersion()
agxCore_export.h
agxGetCBuildFlags
const AGXCORE_EXPORT char * agxGetCBuildFlags()
agxGetBuildDate
const AGXCORE_EXPORT char * agxGetBuildDate(bool inIsoFormat=false)
agxGetVersion
const AGXCORE_EXPORT char * agxGetVersion(bool includeRevision=true)
agx::UInt32
uint32_t UInt32
Definition: Integer.h:32
agxGetBuildTime
const AGXCORE_EXPORT char * agxGetBuildTime()