ML Reference
MeVis/Foundation/Sources/MLUtilities/mlVersion.h
Go to the documentation of this file.
00001 // **InsertLicense** code
00002 //----------------------------------------------------------------------------------
00006 
00012 //----------------------------------------------------------------------------------
00013 
00014 #ifndef __mlVersion_H
00015 #define __mlVersion_H
00016 
00017 #ifndef __mlUtilsSystemC_H
00018 #include "mlUtilsSystemC.h"
00019 #endif
00020 
00021 //-----------------------------------------------------------------------------------
00022 //
00024 
00025 //
00026 //-----------------------------------------------------------------------------------
00029 #define ML_MAJOR_VERSION      2
00030 
00033 #define ML_MAJOR_CAPI_VERSION 2
00034 
00039 #define ML_CPPAPI_VERSION     1
00040 
00044 #define ML_CAPI_REVISION      0
00045 
00049 #define ML_REVISION           0
00050 
00053 #define ML_VERSION_STRING "2.2.1.0.0"
00054 
00055 
00056 
00057 
00058 //-----------------------------------------------------------------------------------
00059 //
00061 
00062 //
00063 //-----------------------------------------------------------------------------------
00064 
00085 ML_UTILS_EXPORT void MLGetVersion(MLint32* majorVersion,
00086                                   MLint32* majorCAPIVersion,
00087                                   MLint32* verCPPAPI,
00088                                   MLint32* revCAPI,
00089                                   MLint32* rev,
00090                                   const char** vString);
00091 
00092 
00099 //     if (!MLIsCAPILinkCompatible(ML_MAJOR_VERSION,
00100 //                                 ML_MAJOR_CAPI_VERSION,
00101 //                                 ML_CAPI_REVISION)){ handleErr(); }
00112 ML_UTILS_EXPORT MLint32 MLIsCAPILinkCompatible(MLint32 majorVersion, MLint32 majorCAPIVersion, MLint32 revCAPI) ML_RETURN_VALUE_SHOULD_BE_USED;
00113 
00114 
00121 //     if (!MLIsCPPAPILinkCompatible(ML_MAJOR_VERSION,
00122 //                                   ML_MAJOR_CAPI_VERSION,
00123 //                                   ML_CPPAPI_VERSION,
00124 //                                   ML_CAPI_REVISION)){ handleErr(); }
00137 ML_UTILS_EXPORT MLint32 MLIsCPPAPILinkCompatible(MLint32 majorVersion, MLint32 majorCAPIVersion, MLint32 verCPPAPI, MLint32 revCAPI) ML_RETURN_VALUE_SHOULD_BE_USED;
00138 
00174 ML_UTILS_EXPORT MLint32 MLCheckCPPAPILinkCompatibility(MLint32 majorVersion,
00175                                                        MLint32 majorCAPIVersion,
00176                                                        MLint32 verCPPAPI,
00177                                                        MLint32 revCAPI,
00178                                                        const char* mlVersionString,
00179                                                        const char* initFunctionName);
00180 
00182 
00183 #endif // __mlVersion_H
00184 
00185