ML Reference
MeVis/Foundation/Sources/ML/include/mlInitSystemML.h
Go to the documentation of this file.
00001 // **InsertLicense** code
00002 //-------------------------------------------------------------------------
00012 //-------------------------------------------------------------------------
00013 #ifndef __mlInitSystemML_H_PURE_C
00014 #define __mlInitSystemML_H_PURE_C
00015 
00016 #ifndef __mlTypeDefs_H
00017 #include "mlTypeDefs.h"
00018 #endif
00019 
00020 //------------------------------------------------------------------------------------
00022 
00023 //------------------------------------------------------------------------------------
00030 #ifdef ML_EXPORTS
00031 
00032   #define MLEXPORT ML_LIBRARY_EXPORT_ATTRIBUTE
00033 #else
00034 
00035   #define MLEXPORT ML_LIBRARY_IMPORT_ATTRIBUTE
00036 #endif
00037 
00038 
00039 
00040 // Disable c++ specific stuff if c interface is required.
00041 #ifndef ML_SYSTEM_HAS_NO_64
00042 #ifndef ML_DISABLE_CPP
00043 
00044 //---------------------------------------------------------------------------
00045 // C++ Section:
00046 //---------------------------------------------------------------------------
00047 
00048 ML_START_NAMESPACE
00049 
00050 //---------------------------------------------------------------------------
00052 
00053 //---------------------------------------------------------------------------
00054 
00055 //--------------------------------------------------------------------------------------
00060 //--------------------------------------------------------------------------------------
00061 MLEXPORT MLint32 initML();
00062 
00063 //--------------------------------------------------------------------------------------
00065 //--------------------------------------------------------------------------------------
00066 MLEXPORT void destroyML();
00067 
00068 //--------------------------------------------------------------------------------------
00071 
00127 //--------------------------------------------------------------------------------------
00128 MLEXPORT void setMLEnvironment();
00130 
00131 ML_END_NAMESPACE
00132 
00133 #endif // #ifdef ML_DISABLE_CPP
00134 #endif
00135 
00136 #endif // __mlInitSystemML_H_PURE_C
00137 
00138 
00139 //---------------------------------------------------------------------------
00140 // In C++ mode include C++ specific stuff.
00141 //---------------------------------------------------------------------------
00142 #ifndef ML_SYSTEM_HAS_NO_64
00143 #ifndef ML_DISABLE_CPP
00144 
00145 #include "mlSystemIncludes.h"
00146 #endif
00147 #endif
00148 
00149 //---------------------------------------------------------------------------
00150 // Include the C-API stuff from mlUtils.
00151 //---------------------------------------------------------------------------
00152 #ifdef ML_DISABLE_CPP
00153 #include "mlUtilsSystemC.h"
00154 #else
00155 #include "mlUtilsSystem.h"
00156 #endif
00157 
00158 //---------------------------------------------------------------------------
00160 //---------------------------------------------------------------------------
00161 #ifndef __mlDataTypes_H
00162 #include "mlDataTypes.h"
00163 #endif
00164 
00165 
00166 //----------------------------------------------------------------------------------------------
00168 
00169 //----------------------------------------------------------------------------------------------
00170 // Disable c++ specific stuff if c interface is required.
00171 #ifndef ML_SYSTEM_HAS_NO_64
00172 #ifndef ML_DISABLE_CPP
00173 #ifdef WIN32
00174 #ifndef _ML_INT64_STREAM_SUPPORT
00175 #define _ML_INT64_STREAM_SUPPORT
00176 #if (_MSC_VER < 1300)
00177 // Add stream and strstream input and output operators for the INT64 type.
00178 // Without that we had a number of ambiguous output stream statements.
00179 // Microsoft obviously forgot that on Visual C++ 6
00180 #ifndef MEVIS_STLPORT
00181 namespace std{
00182   MLEXPORT ostream&  operator<<(ostream &ostr,  INT64  s);
00183   MLEXPORT istream&  operator>>(istream &istr,  INT64 &s);
00184   MLEXPORT ostream&  operator<<(ostream &ostr, UINT64  s);
00185   MLEXPORT istream&  operator>>(istream &istr, UINT64 &s);
00186 }
00187 #endif
00188 #endif
00189 #endif // _ML_INT64_STREAM_SUPPORT
00190 #endif // WIN32
00191 #endif // ML_DISABLE_CPP
00192 #endif // ML_SYSTEM_HAS_NO_64
00193 
00194 
00195