AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
version.h File Reference
#include <agx/agxCore_export.h>
#include <agx/stdint.h>
#include <agx/agx_version.h>
#include <agx/Integer.h>

Go to the source code of this file.

Macros

#define AGX_VERSION_GREATER_OR_EQUAL(GENERATION, MAJOR, MINOR, PATCH)    ((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)))))
 Use to check if AGX version is higher or equal than the specified version.
 
#define AGX_VERSION_GREATER_THAN(GENERATION, MAJOR, MINOR, PATCH)    ((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)))))
 Use to check if AGX version is strictly higher than the specified version.
 
#define AGX_VERSION_LESS_OR_EQUAL(GENERATION, MAJOR, MINOR, PATCH)    ((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))))))
 Use to check if AGX version is lower or equal than the specified version.
 
#define AGX_VERSION_LESS_THAN(GENERATION, MAJOR, MINOR, PATCH)    ((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) )))))
 Macros below can be used as: AGX_VERSION_GREATER_OR_EQUAL(1,8,0,0) Use to check if the build version of AGX is equal or higher.
 

Functions

AGXCORE_EXPORT agx::UInt32 AGX_CALC_VERSION (agx::UInt8 generation, agx::UInt8 major, agx::UInt8 minor, agx::UInt8 patch)
 
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, patch.
 
AGXCORE_EXPORT agx::UInt32 AGX_GET_VERSION ()
 
AGXCORE_EXPORT const char * agxGetBuildDate (bool inIsoFormat=false)
 
AGXCORE_EXPORT const char * agxGetBuildTime ()
 
AGXCORE_EXPORT const char * agxGetBuildType ()
 
AGXCORE_EXPORT const char * agxGetCBuildFlags ()
 
AGXCORE_EXPORT const char * agxGetCompanyName ()
 
AGXCORE_EXPORT const char * agxGetCppBuildFlags ()
 
AGXCORE_EXPORT agx::UInt8 agxGetGenerationVersion ()
 
AGXCORE_EXPORT const char * agxGetLibraryName ()
 Return the name of the library.
 
AGXCORE_EXPORT agx::UInt8 agxGetMajorVersion ()
 
AGXCORE_EXPORT agx::UInt8 agxGetMinorVersion ()
 
AGXCORE_EXPORT agx::UInt8 agxGetPatchVersion ()
 
AGXCORE_EXPORT const char * agxGetPythonVersion ()
 
AGXCORE_EXPORT const char * agxGetRevision ()
 
AGXCORE_EXPORT agx::UInt16 agxGetSerializationVersion ()
 
AGXCORE_EXPORT agx::UInt16 agxGetStorageStreamVersion ()
 
AGXCORE_EXPORT const char * agxGetVersion (bool includeRevision=true)
 

Macro Definition Documentation

◆ AGX_VERSION_GREATER_OR_EQUAL

#define AGX_VERSION_GREATER_OR_EQUAL (   GENERATION,
  MAJOR,
  MINOR,
  PATCH 
)     ((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)))))

Use to check if AGX version is higher or equal than the specified version.

Definition at line 102 of file version.h.

◆ AGX_VERSION_GREATER_THAN

#define AGX_VERSION_GREATER_THAN (   GENERATION,
  MAJOR,
  MINOR,
  PATCH 
)     ((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)))))

Use to check if AGX version is strictly higher than the specified version.

Definition at line 106 of file version.h.

◆ AGX_VERSION_LESS_OR_EQUAL

#define AGX_VERSION_LESS_OR_EQUAL (   GENERATION,
  MAJOR,
  MINOR,
  PATCH 
)     ((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))))))

Use to check if AGX version is lower or equal than the specified version.

Definition at line 98 of file version.h.

◆ AGX_VERSION_LESS_THAN

#define AGX_VERSION_LESS_THAN (   GENERATION,
  MAJOR,
  MINOR,
  PATCH 
)     ((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) )))))

Macros below can be used as: AGX_VERSION_GREATER_OR_EQUAL(1,8,0,0) Use to check if the build version of AGX is equal or higher.

Use to check if AGX version is strictly lower than the specified version

Definition at line 94 of file version.h.

Function Documentation

◆ AGX_CALC_VERSION()

◆ AGX_CONVERT_VERSION()

AGXCORE_EXPORT void AGX_CONVERT_VERSION ( agx::UInt32  version,
agx::UInt8 &  generation,
agx::UInt8 &  major,
agx::UInt8 &  minor,
agx::UInt8 &  patch 
)
extern

Convert a 32 bit unsigned int with version encoding into generation, major, minor, patch.

◆ AGX_GET_VERSION()

AGXCORE_EXPORT agx::UInt32 AGX_GET_VERSION ( )
extern
Returns
the current version in unsigned 32 bits

◆ agxGetBuildDate()

AGXCORE_EXPORT const char * agxGetBuildDate ( bool  inIsoFormat = false)
extern
Parameters
inIsoFormat- If true the format of the date string will be: YYYY-MM-DD otherwise in the standard DATE format: mmm d yyyy
Returns
the date of build of the file version.cpp

◆ agxGetBuildTime()

AGXCORE_EXPORT const char * agxGetBuildTime ( )
extern
Returns
the time of build of the file version.cpp

◆ agxGetBuildType()

AGXCORE_EXPORT const char * agxGetBuildType ( )
extern
Returns
the build type (e.g. DEBUG, RELWITHDEBINFO, RELEASE, ...).

◆ agxGetCBuildFlags()

AGXCORE_EXPORT const char * agxGetCBuildFlags ( )
extern
Returns
the build flags used for C(e.g. Od, O2, ...).

◆ agxGetCompanyName()

AGXCORE_EXPORT const char * agxGetCompanyName ( )
extern
Returns
the company name

◆ agxGetCppBuildFlags()

AGXCORE_EXPORT const char * agxGetCppBuildFlags ( )
extern
Returns
the build flags used for C++(e.g. Od, O2, ...).

◆ agxGetGenerationVersion()

AGXCORE_EXPORT agx::UInt8 agxGetGenerationVersion ( )
extern
Returns
the generation version

◆ agxGetLibraryName()

AGXCORE_EXPORT const char * agxGetLibraryName ( )
extern

Return the name of the library.

◆ agxGetMajorVersion()

AGXCORE_EXPORT agx::UInt8 agxGetMajorVersion ( )
extern
Returns
the major version

◆ agxGetMinorVersion()

AGXCORE_EXPORT agx::UInt8 agxGetMinorVersion ( )
extern
Returns
the minor version

◆ agxGetPatchVersion()

AGXCORE_EXPORT agx::UInt8 agxGetPatchVersion ( )
extern
Returns
the patch version

◆ agxGetPythonVersion()

AGXCORE_EXPORT const char * agxGetPythonVersion ( )
extern
Returns
the python version used when build AGX

◆ agxGetRevision()

AGXCORE_EXPORT const char * agxGetRevision ( )
extern
Returns
the last committed file version to the revision system

◆ agxGetSerializationVersion()

AGXCORE_EXPORT agx::UInt16 agxGetSerializationVersion ( )
extern
Returns
the current serialization version.

◆ agxGetStorageStreamVersion()

AGXCORE_EXPORT agx::UInt16 agxGetStorageStreamVersion ( )
extern
Returns
the current storage stream serialization version.

◆ agxGetVersion()

AGXCORE_EXPORT const char * agxGetVersion ( bool  includeRevision = true)
extern
Returns
the version in the form GENERATION.MAJOR.MINOR.PATCH-rREVISION