AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
version.h
Go to the documentation of this file.
1/*
2Copyright 2007-2024. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx 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
25extern "C" {
26
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
#define AGXCORE_EXPORT
uint16_t UInt16
Definition Integer.h:31
uint32_t UInt32
Definition Integer.h:32
uint8_t UInt8
Definition Integer.h:30
AGXCORE_EXPORT const char * agxGetBuildDate(bool inIsoFormat=false)
AGXCORE_EXPORT agx::UInt8 agxGetPatchVersion()
AGXCORE_EXPORT agx::UInt32 AGX_CALC_VERSION(agx::UInt8 generation, agx::UInt8 major, agx::UInt8 minor, agx::UInt8 patch)
AGXCORE_EXPORT const char * agxGetLibraryName()
Return the name of the library.
AGXCORE_EXPORT const char * agxGetVersion(bool includeRevision=true)
AGXCORE_EXPORT const char * agxGetCppBuildFlags()
AGXCORE_EXPORT agx::UInt8 agxGetGenerationVersion()
AGXCORE_EXPORT const char * agxGetPythonVersion()
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,...
AGXCORE_EXPORT agx::UInt8 agxGetMajorVersion()
AGXCORE_EXPORT agx::UInt16 agxGetSerializationVersion()
AGXCORE_EXPORT const char * agxGetCBuildFlags()
AGXCORE_EXPORT agx::UInt16 agxGetStorageStreamVersion()
AGXCORE_EXPORT const char * agxGetRevision()
AGXCORE_EXPORT const char * agxGetBuildTime()
AGXCORE_EXPORT agx::UInt32 AGX_GET_VERSION()
AGXCORE_EXPORT const char * agxGetBuildType()
AGXCORE_EXPORT agx::UInt8 agxGetMinorVersion()
AGXCORE_EXPORT const char * agxGetCompanyName()