|
MeVisLab Toolbox Reference
|
#include "mlUtilsSystem.h"#include "mlTypeDefs.h"#include <ThirdPartyWarningsDisable.h>#include <sstream>#include <ThirdPartyWarningsRestore.h>Go to the source code of this file.
Namespaces | |
| namespace | ml |
| Defines the class GetTileJob. | |
Macros | |
Public macros for logging errors, warnings, and information messages. | |
Each of the macros returns an ostream, which allows to pipe additional details into the message. These macros are equivalent to the older ML_PRINT_* macros that only took a string for the message details. The error code is an optional second argument. If it is omitted, ML_BAD_PARAMETER is used. Example: if (outIndex<0) {
mlError("SomeClass::SomeMethod", ML_BAD_PARAMETER) << "returning NULL, excepted outIndex>=0, but got outIndex==" << outIndex;
}
if (outIndex>3) {
mlError("SomeClass::SomeMethod") << "returning NULL, excepted outIndex<=3, but got outIndex==" << outIndex;
}
| |
| #define | mlFatalError(FUNCTION, ...) |
| #define | mlError(FUNCTION, ...) |
| #define | mlWarning(FUNCTION, ...) |
| #define | mlInfo(FUNCTION) |
| #define | mlFatalErrorWithDump(FUNCTION, ERRORCODE, OBJECT) |
Logs a fatal error for FUNCTION with MLErrorCode ERRORCODE and additionally dumps the given OBJECT (which needs to support getTypeId()). | |
| #define | mlErrorWithDump(FUNCTION, ERRORCODE, OBJECT) |
Logs an error for FUNCTION with MLErrorCode ERRORCODE and additionally dumps the given OBJECT (which needs to support getTypeId()). | |
| #define | mlWarningWithDump(FUNCTION, ERRORCODE, OBJECT) |
Logs a warning for FUNCTION with MLErrorCode ERRORCODE and additionally dumps the given OBJECT (which needs to support getTypeId()). | |
| #define | mlInfoWithDump(FUNCTION, OBJECT) |
Logs an informational message for FUNCTION and additionally dumps the given OBJECT (which needs to support getTypeId()). | |