29 std::string fileP =
"",
31 std::string functionP =
"",
33 std::string handlingP =
"");
75 #define _SEND_FILTER_MESSAGE(MESSAGE_PRINT_MACRO, MESSAGE_LIST, MESSAGE_TYPE, FILE, LINE, FUNCTION, ERROR_CODE, HANDLING) \
77 FilterMessage message(MESSAGE_TYPE, FILE, LINE, FUNCTION, ERROR_CODE, HANDLING); \
78 messageList->push_back(message); \
81 MESSAGE_PRINT_MACRO(FUNCTION, ERROR_CODE, HANDLING); \
Helper class to store and handle error messages occuring in filter calls as well as to convert them t...
MLErrorCode errorCode
The ML error code of the message.
MLMessageType messageType
The ML error type of the message.
std::string handling
Description and/or what will be done to handle it.
FilterMessage(MLMessageType messageTypeP=ML_INFORMATION, std::string fileP="", int lineNumberP=0, std::string functionP="", MLErrorCode errorCodeP=ML_RESULT_OK, std::string handlingP="")
Convenience initialization of the FilterMessage.
std::string file
The file in which the message occurred.
std::string dumpToString() const
Converts the error information to a human readable string.
int lineNumber
The line in file where the message occurred.
MLint32 MLErrorCode
Type of an ML Error code.
#define ML_RESULT_OK
No error. Everything seems to be okay.
MLMessageType
Message types handled by the ErrorOutput class.
std::string dumpFilterMessageList(const FilterMessageList &msgList)
Convenience function which dumps an entire list of filter messages into one string.
std::list< FilterMessage > FilterMessageList
List of messages which can occur during filter calls.