Functions | Variables
MessageHandling.c File Reference
#include <stdio.h>
#include <qpOASES_e/MessageHandling.h>
#include <qpOASES_e/Utils.h>
Include dependency graph for MessageHandling.c:

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)
 
MessageHandlingqpOASES_getGlobalMessageHandler ()
 

Variables

BEGIN_NAMESPACE_QPOASES ReturnValueList returnValueList []
 

Detailed Description

Author
Hans Joachim Ferreau, Andreas Potschka, Christian Kirches
Version
3.1embedded
Date
2007-2015

Implementation of the MessageHandling class including global return values.

Definition in file MessageHandling.c.

Function Documentation

const char* MessageHandling_getErrorCodeMessage ( MessageHandling _THIS,
const returnValue  _returnValue 
)

Provides message text corresponding to given returnValue.

Returns
String containing message text.

Definition at line 497 of file MessageHandling.c.

returnValue MessageHandling_listAllMessages ( MessageHandling _THIS)

Prints a complete list of all messages to output file.

Returns
SUCCESSFUL_RETURN

Definition at line 357 of file MessageHandling.c.

returnValue MessageHandling_reset ( MessageHandling _THIS)

Resets all preferences to default values.

Returns
SUCCESSFUL_RETURN

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)!

Returns
Error number returned by sub function call
Parameters
EnumberError number returned by sub function call.
additionaltextAdditional error text (0, if none).
functionnameName of function which caused the error.
filenameName of file which caused the error.
linenumberNumber of line which caused the error.incompatible binary file
localVisibilityStatusDetermines (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).

Returns
Info number returned by sub function call
Parameters
InumberInfo number returned by sub function call.
additionaltextAdditional warning text (0, if none).
functionnameName of function which submitted the info.
filenameName of file which submitted the info.
linenumberNumber of line which submitted the info.
localVisibilityStatusDetermines (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 
)
Parameters
RETnumberError/warning/info number returned by sub function call.
additionaltextAdditional warning text (0, if none).
functionnameName of function which caused the error/warning/info.
filenameName of file which caused the error/warning/info.
linenumberNumber of line which caused the error/warning/info.
localVisibilityStatusDetermines (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!
RETstringLeading 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.

Returns
Warning number returned by sub function call
Parameters
WnumberWarning number returned by sub function call.
additionaltextAdditional warning text (0, if none).
functionnameName of function which caused the warning.
filenameName of file which caused the warning.
linenumberNumber of line which caused the warning.
localVisibilityStatusDetermines (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.

Parameters
_outputFileOutput file.
_errorVisibilityVisibility status for error messages.
_warningVisibilityVisibility status for warning messages.
_infoVisibilityVisibility 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.

Variable Documentation

Defines pairs of global return values and messages.

Definition at line 52 of file MessageHandling.c.



acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Mon Jun 10 2019 12:35:19