HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UT_Version.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: UT_Version.h ( UT Library, C++)
7  */
8 
9 /*
10  * NOTE: This is a compatibility header. Use SYS_Version.h instead.
11  */
12 
13 #ifndef __UT_Version__
14 #define __UT_Version__
15 
16 #include <SYS/SYS_Version.h>
17 
18 /// @file UT_Version.h
19 /// Defines compile time version constants for use in code.
20 /// @note Please see UT_String::compareVersionString()
21 
22 // The major.minor.build full version as a string
23 #define UT_FULL_VERSION SYS_VERSION_FULL
24 
25 // The major.minor release version as a string
26 #define UT_RELEASE_VERSION SYS_VERSION_RELEASE
27 
28 // The major version. .9 counts as next higher.
29 #define UT_MAJOR_VERSION SYS_VERSION_MAJOR
30 #define UT_MINOR_VERSION SYS_VERSION_MINOR
31 
32 // Version numbers as integer values
33 #define UT_MAJOR_VERSION_INT SYS_VERSION_MAJOR_INT
34 #define UT_MINOR_VERSION_INT SYS_VERSION_MINOR_INT
35 #define UT_BUILD_VERSION_INT SYS_VERSION_BUILD_INT
36 #define UT_PATCH_VERSION_INT SYS_VERSION_PATCH_INT
37 
38 // Version as a packed integer: ("%02x%02x%04x", major, minor, build)
39 #define UT_VERSION_INT SYS_VERSION_FULL_INT
40 
41 
42 /// The version string to insert in paths for save directories.
43 #define UT_SAVE_VERSION SYS_VERSION_RELEASE
44 
45 
46 /// Return the full major.minor.build version.
47 inline const char *UTgetFullVersion() { return SYS_Version::full(); }
48 /// Return the "major.minor" release version
49 inline const char *UTgetReleaseVersion() { return SYS_Version::release(); }
50 /// Return the "major" version
51 inline const char *UTgetMajorVersion() { return SYS_Version::major(); }
52 /// Return the version used for save directories
53 inline const char *UTgetSaveVersion() { return SYS_Version::release(); }
54 
55 #endif
const char * UTgetMajorVersion()
Return the "major" version.
Definition: UT_Version.h:51
const char * UTgetReleaseVersion()
Return the "major.minor" release version.
Definition: UT_Version.h:49
const char * UTgetSaveVersion()
Return the version used for save directories.
Definition: UT_Version.h:53
const char * UTgetFullVersion()
Return the full major.minor.build version.
Definition: UT_Version.h:47