49 #ifndef __SUPPRESSANYOUTPUT__ 87 {
RET_QPOBJECT_NOT_SETUP,
"The QP object has not been setup correctly, use another constructor", VS_VISIBLE },
106 {
RET_QP_NOT_SOLVED,
"Problems occurred while solving QP with standard solver", VS_VISIBLE },
148 {
RET_LI_RESOLVED,
"Linear independence of active constraint matrix successfully resolved", VS_VISIBLE },
149 {
RET_ENSURELI_FAILED,
"Failed to ensure linear independence of active constraint matrix", VS_VISIBLE },
174 {
RET_NO_REGSTEP_NWSR,
"No additional regularisation step could be performed due to limits", VS_VISIBLE },
175 {
RET_FEWER_REGSTEPS_NWSR,
"Fewer additional regularisation steps have been performed due to limits", VS_VISIBLE },
177 {
RET_ZERO_HESSIAN_ASSUMED,
"Zero Hessian matrix assumed as null pointer passed without specifying hessianType", VS_VISIBLE },
181 {
RET_FIX_BOUNDS_FOR_LP,
"All initial bounds must be fixed when solving an (unregularised) LP", VS_VISIBLE },
206 {
RET_ENSURELI_DROPPED,
"Linear independence resolved by dropping blocking constraint", VS_VISIBLE },
208 {
RET_SIMPLE_STATUS_P1,
"QP problem could not be solved within given number of iterations", VS_VISIBLE },
210 {
RET_SIMPLE_STATUS_M1,
"QP problem could not be solved due to an internal error", VS_VISIBLE },
211 {
RET_SIMPLE_STATUS_M2,
"QP problem is infeasible (and thus could not be solved)", VS_VISIBLE },
271 const char* additionaltext,
272 const char* functionname,
273 const char* filename,
274 const unsigned long linenumber,
295 const char* additionaltext,
296 const char* functionname,
297 const char* filename,
298 const unsigned long linenumber,
319 const char* additionaltext,
320 const char* functionname,
321 const char* filename,
322 const unsigned long linenumber,
359 #ifndef __SUPPRESSANYOUTPUT__ 388 const char* additionaltext,
389 const char* functionname,
390 const char* filename,
391 const unsigned long linenumber,
393 const char* RETstring
396 #ifndef __SUPPRESSANYOUTPUT__ 403 int numberOfWhitespaces = (_THIS->
errorCount-1)*2;
405 if ( numberOfWhitespaces < 0 )
406 numberOfWhitespaces = 0;
408 if ( numberOfWhitespaces > 40 )
409 numberOfWhitespaces = 40;
414 memset( whitespaces,
' ', (
size_t) numberOfWhitespaces );
415 whitespaces[numberOfWhitespaces] =
'\0';
420 if ( returnValueList[keypos].key == RETnumber )
433 if ( ( returnValueList[keypos].globalVisibilityStatus ==
VS_VISIBLE ) && ( localVisibilityStatus ==
VS_VISIBLE ) )
447 if ( additionaltext == 0 )
451 RETstring,functionname,filename,(
int)linenumber,returnValueList[keypos].data
455 RETstring,returnValueList[keypos].data
464 RETstring,functionname,filename,(
int)linenumber,returnValueList[keypos].data,additionaltext
468 RETstring,returnValueList[keypos].data,additionaltext
475 if ( RETstring[0] ==
'E' )
501 #ifndef __SUPPRESSANYOUTPUT__ 507 if ( returnValueList[keypos].key == _returnValue )
515 return "Unknown error code";
518 return (returnValueList[keypos].data != 0) ? returnValueList[keypos].
data :
"No message for this error code";
522 return "No message for this error code";
534 #if defined(__DSPACE__) || defined(__XPCTARGET__) 548 #ifndef __XPCTARGET__ 553 return &qpOASES_globalMessageHandler;
VisibilityStatus infoVisibility
void MessageHandlingCPY(MessageHandling *FROM, MessageHandling *TO)
static returnValue MessageHandling_setErrorCount(MessageHandling *_THIS, int _errorCount)
static void MessageHandling_setOutputFile(MessageHandling *_THIS, FILE *_outputFile)
MessageHandling * qpOASES_getGlobalMessageHandler()
Allows to pass back messages to the calling function.
BEGIN_NAMESPACE_QPOASES ReturnValueList returnValueList[]
returnValue MessageHandling_throwWarning(MessageHandling *_THIS, returnValue Wnumber, const char *additionaltext, const char *functionname, const char *filename, const unsigned long linenumber, VisibilityStatus localVisibilityStatus)
VisibilityStatus warningVisibility
returnValue MessageHandling_throwInfo(MessageHandling *_THIS, returnValue Inumber, const char *additionaltext, const char *functionname, const char *filename, const unsigned long linenumber, VisibilityStatus localVisibilityStatus)
static void MessageHandling_setInfoVisibilityStatus(MessageHandling *_THIS, VisibilityStatus _infoVisibility)
Handles all kind of error messages, warnings and other information.
Data structure for entries in returnValueList.
returnValue qpOASES_myPrintf(const char *s)
returnValue MessageHandling_throwError(MessageHandling *_THIS, returnValue Enumber, const char *additionaltext, const char *functionname, const char *filename, const unsigned long linenumber, VisibilityStatus localVisibilityStatus)
VisibilityStatus errorVisibility
static void MessageHandling_setErrorVisibilityStatus(MessageHandling *_THIS, VisibilityStatus _errorVisibility)
static void MessageHandling_setWarningVisibilityStatus(MessageHandling *_THIS, VisibilityStatus _warningVisibility)
#define END_NAMESPACE_QPOASES
void MessageHandlingCON(MessageHandling *_THIS, FILE *_outputFile, VisibilityStatus _errorVisibility, VisibilityStatus _warningVisibility, VisibilityStatus _infoVisibility)
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)
#define QPOASES_MAX_STRING_LENGTH
returnValue MessageHandling_listAllMessages(MessageHandling *_THIS)
const char * MessageHandling_getErrorCodeMessage(MessageHandling *_THIS, const returnValue _returnValue)
#define BEGIN_NAMESPACE_QPOASES
returnValue MessageHandling_reset(MessageHandling *_THIS)