34 #ifndef QPOASES_MESSAGEHANDLING_HPP 35 #define QPOASES_MESSAGEHANDLING_HPP 45 #define myStderr stderr 47 #define myStdout stdout 247 const char* additionaltext,
248 const char* functionname,
249 const char* filename,
250 const unsigned long linenumber,
262 const char* additionaltext,
263 const char* functionname,
264 const char* filename,
265 const unsigned long linenumber,
276 const char* additionaltext,
277 const char* functionname,
278 const char* filename,
279 const unsigned long linenumber,
351 const char* additionaltext,
352 const char* functionname,
353 const char* filename,
354 const unsigned long linenumber,
358 const char* RETstring
378 #define __FUNCTION__ 0 393 #define THROWERROR(retval) ( getGlobalMessageHandler( )->throwError((retval),0,__FUNCTION__,__FILE__,__LINE__,VS_VISIBLE) ) 396 #define THROWWARNING(retval) ( getGlobalMessageHandler( )->throwWarning((retval),0,__FUNCTION__,__FILE__,__LINE__,VS_VISIBLE) ) 399 #define THROWINFO(retval) ( getGlobalMessageHandler( )->throwInfo((retval),0,__FUNCTION__,__FILE__,__LINE__,VS_VISIBLE) ) 408 #include <MessageHandling.ipp>
VisibilityStatus infoVisibility
MessageHandling * getGlobalMessageHandler()
returnValue throwError(returnValue Enumber, const char *additionaltext, const char *functionname, const char *filename, const unsigned long linenumber, VisibilityStatus localVisibilityStatus)
VisibilityStatus getInfoVisibilityStatus() const
VisibilityStatus getErrorVisibilityStatus() const
returnValue throwInfo(returnValue Inumber, const char *additionaltext, const char *functionname, const char *filename, const unsigned long linenumber, VisibilityStatus localVisibilityStatus)
Allows to pass back messages to the calling function.
VisibilityStatus getWarningVisibilityStatus() const
void setOutputFile(myFILE *_outputFile)
returnValue throwWarning(returnValue Wnumber, const char *additionaltext, const char *functionname, const char *filename, const unsigned long linenumber, VisibilityStatus localVisibilityStatus)
VisibilityStatus warningVisibility
MessageHandling & operator=(const MessageHandling &rhs)
void setInfoVisibilityStatus(VisibilityStatus _infoVisibility)
returnValue setErrorCount(int _errorCount)
Handles all kind of error messages, warnings and other information.
Data structure for entries in returnValueList.
returnValue listAllMessages()
int getErrorCount() const
VisibilityStatus errorVisibility
void rhs(const real_t *x, real_t *f)
static const char * getErrorString(int error)
void setErrorVisibilityStatus(VisibilityStatus _errorVisibility)
myFILE * getOutputFile() const
returnValue throwMessage(returnValue RETnumber, const char *additionaltext, const char *functionname, const char *filename, const unsigned long linenumber, VisibilityStatus localVisibilityStatus, const char *RETstring)
void setWarningVisibilityStatus(VisibilityStatus _warningVisibility)