MeVisLabToolboxReference
|
00001 // **InsertLicense** code 00002 //---------------------------------------------------------------------------------- 00004 00009 //---------------------------------------------------------------------------------- 00010 00011 #ifndef __MLCSOIncludes_H 00012 #define __MLCSOIncludes_H 00013 00014 #include "MLCSOSystem.h" 00015 00017 const int CSO_VERSION = 5; 00018 00019 00020 #include <mlModuleIncludes.h> 00021 #include <mlModule.h> 00022 00023 00025 #define CSO_PRINT(msg) { std::stringstream strstream; \ 00026 strstream << msg; \ 00027 ML_UTILS_NAMESPACE::MLErrorOutput.printAndNotify(ML_COUT, "CSO", "", "", strstream.str(), "", __FILE__, __LINE__, NULL, NULL, ML_RESULT_OK); } 00028 00030 #define CSO_ERROR(msg) { std::stringstream strstream; \ 00031 strstream << msg; \ 00032 ML_UTILS_NAMESPACE::MLErrorOutput.printAndNotify(ML_ERROR, "CSO", "", "", strstream.str(), "", __FILE__, __LINE__, NULL, NULL, ML_RESULT_OK); } 00033 00035 #define CSO_WARNING(msg) { std::stringstream strstream; \ 00036 strstream << msg; \ 00037 ML_UTILS_NAMESPACE::MLErrorOutput.printAndNotify(ML_WARNING, "CSO", "", "", strstream.str(), "", __FILE__, __LINE__, NULL, NULL, ML_RESULT_OK); } 00038 00040 #define CSO_DEBUG(msg) { std::stringstream strstream; \ 00041 strstream << msg; \ 00042 ML_UTILS_NAMESPACE::MLErrorOutput.printAndNotify(ML_COUT, "CSO Debug", "", "", strstream.str(), "", __FILE__, __LINE__, NULL, NULL, ML_RESULT_OK); } 00043 00044 #include <fstream> 00045 #include <mlUnicode.h> 00046 00047 #endif // __MLCSOIncludes_H