ML Reference
mlVersion.h
Go to the documentation of this file.
1/*************************************************************************************
2**
3** Copyright 2007, MeVis Medical Solutions AG
4**
5** The user may use this file in accordance with the license agreement provided with
6** the Software or, alternatively, in accordance with the terms contained in a
7** written agreement between the user and MeVis Medical Solutions AG.
8**
9** For further information use the contact form at https://www.mevislab.de/contact
10**
11**************************************************************************************/
12
13#ifndef ML_VERSION_H
14#define ML_VERSION_H
15
17
18#include "mlUtilsSystemC.h"
19
20//-----------------------------------------------------------------------------------
21//
24//
25//-----------------------------------------------------------------------------------
28#define ML_MAJOR_VERSION 2
29
32#define ML_MAJOR_CAPI_VERSION 3
33
38#define ML_CPPAPI_VERSION 7
39
43#define ML_CAPI_REVISION 0
44
48#define ML_REVISION 0
49
52#define ML_VERSION_STRING "2.3.7.0.0"
54
55
56
57//-----------------------------------------------------------------------------------
58//
61//
62//-----------------------------------------------------------------------------------
63
85 MLint32* majorCAPIVersion,
86 MLint32* verCPPAPI,
87 MLint32* revCAPI,
88 MLint32* rev,
89 const char** vString);
90
91
98// if (!MLIsCAPILinkCompatible(ML_MAJOR_VERSION,
99// ML_MAJOR_CAPI_VERSION,
100// ML_CAPI_REVISION)){ handleErr(); }
111[[nodiscard]]
112ML_UTILS_EXPORT MLint32 MLIsCAPILinkCompatible(MLint32 majorVersion, MLint32 majorCAPIVersion, MLint32 revCAPI);
113
114
121// if (!MLIsCPPAPILinkCompatible(ML_MAJOR_VERSION,
122// ML_MAJOR_CAPI_VERSION,
123// ML_CPPAPI_VERSION,
124// ML_CAPI_REVISION)){ handleErr(); }
137[[nodiscard]]
138ML_UTILS_EXPORT MLint32 MLIsCPPAPILinkCompatible(MLint32 majorVersion, MLint32 majorCAPIVersion, MLint32 verCPPAPI, MLint32 revCAPI);
139
176 MLint32 majorCAPIVersion,
177 MLint32 verCPPAPI,
178 MLint32 revCAPI,
179 const char* mlVersionString,
180 const char* initFunctionName);
181
183
184#endif // __mlVersion_H
185
186
signed int MLint32
Definition mlTypeDefs.h:161
#define ML_UTILS_EXPORT
Defines platform dependent DLL export macro for mlUtils.
Definition mlUtilities.h:20
ML_UTILS_EXPORT void MLGetVersion(MLint32 *majorVersion, MLint32 *majorCAPIVersion, MLint32 *verCPPAPI, MLint32 *revCAPI, MLint32 *rev, const char **vString)
Returns version information about the ML.
ML_UTILS_EXPORT MLint32 MLCheckCPPAPILinkCompatibility(MLint32 majorVersion, MLint32 majorCAPIVersion, MLint32 verCPPAPI, MLint32 revCAPI, const char *mlVersionString, const char *initFunctionName)
Checks whether the C++-API of the ML is link compatible and post errors to the MLErrorOutput if not.
ML_UTILS_EXPORT MLint32 MLIsCPPAPILinkCompatible(MLint32 majorVersion, MLint32 majorCAPIVersion, MLint32 verCPPAPI, MLint32 revCAPI)
Checks whether the C++-API of the ML is link compatible.
ML_UTILS_EXPORT MLint32 MLIsCAPILinkCompatible(MLint32 majorVersion, MLint32 majorCAPIVersion, MLint32 revCAPI)
Checks whether the ML-API is link compatible.