
Go to the source code of this file.
Functions | |
| const char * | MessageHandling_getErrorCodeMessage (MessageHandling *_THIS, const returnValue _returnValue) |
| returnValue | MessageHandling_listAllMessages (MessageHandling *_THIS) |
| returnValue | MessageHandling_reset (MessageHandling *_THIS) |
| returnValue | MessageHandling_throwError (MessageHandling *_THIS, returnValue Enumber, const char *additionaltext, const char *functionname, const char *filename, const unsigned long linenumber, VisibilityStatus localVisibilityStatus) |
| returnValue | MessageHandling_throwInfo (MessageHandling *_THIS, returnValue Inumber, const char *additionaltext, const char *functionname, const char *filename, const unsigned long linenumber, VisibilityStatus localVisibilityStatus) |
| returnValue | MessageHandling_throwMessage (MessageHandling *_THIS, returnValue RETnumber, const char *additionaltext, const char *functionname, const char *filename, const unsigned long linenumber, VisibilityStatus localVisibilityStatus, const char *RETstring) |
| returnValue | MessageHandling_throwWarning (MessageHandling *_THIS, returnValue Wnumber, const char *additionaltext, const char *functionname, const char *filename, const unsigned long linenumber, VisibilityStatus localVisibilityStatus) |
| void | MessageHandlingCON (MessageHandling *_THIS, FILE *_outputFile, VisibilityStatus _errorVisibility, VisibilityStatus _warningVisibility, VisibilityStatus _infoVisibility) |
| void | MessageHandlingCPY (MessageHandling *FROM, MessageHandling *TO) |
| MessageHandling * | qpOASES_getGlobalMessageHandler () |
Variables | |
| BEGIN_NAMESPACE_QPOASES ReturnValueList | returnValueList [] |
Implementation of the MessageHandling class including global return values.
Definition in file MessageHandling.c.
| const char* MessageHandling_getErrorCodeMessage | ( | MessageHandling * | _THIS, |
| const returnValue | _returnValue | ||
| ) |
Provides message text corresponding to given returnValue.
Definition at line 497 of file MessageHandling.c.
| returnValue MessageHandling_listAllMessages | ( | MessageHandling * | _THIS | ) |
Prints a complete list of all messages to output file.
Definition at line 357 of file MessageHandling.c.
| returnValue MessageHandling_reset | ( | MessageHandling * | _THIS | ) |
Resets all preferences to default values.
Definition at line 341 of file MessageHandling.c.
| returnValue MessageHandling_throwError | ( | MessageHandling * | _THIS, |
| returnValue | Enumber, | ||
| const char * | additionaltext, | ||
| const char * | functionname, | ||
| const char * | filename, | ||
| const unsigned long | linenumber, | ||
| VisibilityStatus | localVisibilityStatus | ||
| ) |
Prints an error message(a simplified macro THROWERROR is also provided).
Errors are definied as abnormal events which cause an immediate termination of the current (sub) function. Errors of a sub function should be commented by the calling function by means of a warning message (if this error does not cause an error of the calling function, either)!
| Enumber | Error number returned by sub function call. |
| additionaltext | Additional error text (0, if none). |
| functionname | Name of function which caused the error. |
| filename | Name of file which caused the error. |
| linenumber | Number of line which caused the error.incompatible binary file |
| localVisibilityStatus | Determines (locally) if error message can be printed to stderr. If GLOBAL visibility status of the message is set to VS_HIDDEN, no message is printed, anyway! |
Definition at line 269 of file MessageHandling.c.
| returnValue MessageHandling_throwInfo | ( | MessageHandling * | _THIS, |
| returnValue | Inumber, | ||
| const char * | additionaltext, | ||
| const char * | functionname, | ||
| const char * | filename, | ||
| const unsigned long | linenumber, | ||
| VisibilityStatus | localVisibilityStatus | ||
| ) |
Prints a info message (a simplified macro THROWINFO is also provided).
| Inumber | Info number returned by sub function call. |
| additionaltext | Additional warning text (0, if none). |
| functionname | Name of function which submitted the info. |
| filename | Name of file which submitted the info. |
| linenumber | Number of line which submitted the info. |
| localVisibilityStatus | Determines (locally) if info message can be printed to stderr. If GLOBAL visibility status of the message is set to VS_HIDDEN, no message is printed, anyway! |
Definition at line 317 of file MessageHandling.c.
| returnValue MessageHandling_throwMessage | ( | MessageHandling * | _THIS, |
| returnValue | RETnumber, | ||
| const char * | additionaltext, | ||
| const char * | functionname, | ||
| const char * | filename, | ||
| const unsigned long | linenumber, | ||
| VisibilityStatus | localVisibilityStatus, | ||
| const char * | RETstring | ||
| ) |
| RETnumber | Error/warning/info number returned by sub function call. |
| additionaltext | Additional warning text (0, if none). |
| functionname | Name of function which caused the error/warning/info. |
| filename | Name of file which caused the error/warning/info. |
| linenumber | Number of line which caused the error/warning/info. |
| localVisibilityStatus | Determines (locally) if info message can be printed to stderr. If GLOBAL visibility status of the message is set to VS_HIDDEN, no message is printed, anyway! |
| RETstring | Leading string of error/warning/info message. |
Definition at line 386 of file MessageHandling.c.
| returnValue MessageHandling_throwWarning | ( | MessageHandling * | _THIS, |
| returnValue | Wnumber, | ||
| const char * | additionaltext, | ||
| const char * | functionname, | ||
| const char * | filename, | ||
| const unsigned long | linenumber, | ||
| VisibilityStatus | localVisibilityStatus | ||
| ) |
Prints a warning message (a simplified macro THROWWARNING is also provided). Warnings are definied as abnormal events which does NOT cause an immediate termination of the current (sub) function.
| Wnumber | Warning number returned by sub function call. |
| additionaltext | Additional warning text (0, if none). |
| functionname | Name of function which caused the warning. |
| filename | Name of file which caused the warning. |
| linenumber | Number of line which caused the warning. |
| localVisibilityStatus | Determines (locally) if warning message can be printed to stderr. If GLOBAL visibility status of the message is set to VS_HIDDEN, no message is printed, anyway! |
Definition at line 293 of file MessageHandling.c.
| void MessageHandlingCON | ( | MessageHandling * | _THIS, |
| FILE * | _outputFile, | ||
| VisibilityStatus | _errorVisibility, | ||
| VisibilityStatus | _warningVisibility, | ||
| VisibilityStatus | _infoVisibility | ||
| ) |
Constructor which takes the desired output file and desired visibility states.
| _outputFile | Output file. |
| _errorVisibility | Visibility status for error messages. |
| _warningVisibility | Visibility status for warning messages. |
| _infoVisibility | Visibility status for info messages. |
Definition at line 232 of file MessageHandling.c.
| void MessageHandlingCPY | ( | MessageHandling * | FROM, |
| MessageHandling * | TO | ||
| ) |
Definition at line 252 of file MessageHandling.c.
| MessageHandling* qpOASES_getGlobalMessageHandler | ( | ) |
Global message handler for all qpOASES modules.
Definition at line 545 of file MessageHandling.c.
| BEGIN_NAMESPACE_QPOASES ReturnValueList returnValueList[] |
Defines pairs of global return values and messages.
Definition at line 52 of file MessageHandling.c.