message.c
Go to the documentation of this file.
23 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/ 105 /* if we reached a newline or the size limit, empty buffer and reset (need possibly space for newline and '\0') */ 142 /** prints error message with the current message handler, or buffers the message if no newline exists */ 152 /** prints warning message with the current message handler, or buffers the message if no newline exists */ 159 if ( messagehdlr != NULL && messagehdlr->messagewarning != NULL && (! messagehdlr->quiet || messagehdlr->logfile != NULL) ) 161 handleMessage(messagehdlr, messagehdlr->messagewarning, stderr, ! messagehdlr->quiet, messagehdlr->logfile, (messagehdlr->logfile != NULL), 166 /** prints dialog message with the current message handler, or buffers the message if no newline exists */ 178 handleMessage(messagehdlr, messagehdlr->messagedialog, (file == NULL) ? stdout : file, TRUE, messagehdlr->logfile, (messagehdlr->logfile != NULL), 186 handleMessage(messagehdlr, messagehdlr->messagedialog, file, !messagehdlr->quiet || (file != NULL && file != stdout), messagehdlr->logfile, (messagehdlr->logfile != NULL), msg, NULL, NULL); 192 /** prints info message with the current message handler, or buffers the message if no newline exists */ 204 handleMessage(messagehdlr, messagehdlr->messageinfo, (file == NULL) ? stdout : file, TRUE, messagehdlr->logfile, (messagehdlr->logfile != NULL), 209 /* file output cannot be buffered because the output file may change or the message is to long */ 212 handleMessage(messagehdlr, messagehdlr->messagedialog, file, !messagehdlr->quiet || (file != NULL && file != stdout), messagehdlr->logfile, (messagehdlr->logfile != NULL), msg, NULL, NULL); 275 /** Creates and captures a message handler which deals with warning, information, and dialog (interactive shell) methods. 284 SCIP_DECL_MESSAGEWARNING((*messagewarning)),/**< warning message print method of message handler */ 285 SCIP_DECL_MESSAGEDIALOG((*messagedialog)),/**< dialog message print method of message handler */ 287 SCIP_DECL_MESSAGEHDLRFREE((*messagehdlrfree)), /**< destructor of message handler to free message handler data */ 311 SCIP_ALLOC( BMSallocMemoryArray(&(*messagehdlr)->warningbuffer, SCIP_MAXSTRLEN) ); /*lint !e506*/ 312 SCIP_ALLOC( BMSallocMemoryArray(&(*messagehdlr)->dialogbuffer, SCIP_MAXSTRLEN) ); /*lint !e506*/ 507 /** prints a dialog message that requests user interaction, acting like the vprintf() command */ 517 /** prints a dialog message that requests user interaction into a file, acting like the fprintf() command */ 532 /** prints a dialog message that requests user interaction into a file, acting like the vfprintf() command */ 689 /** prints a message into a file depending on the verbosity level, acting like the fprintf() command */ 706 /** prints a message into a file depending on the verbosity level, acting like the vfprintf() command */ 760 /** prints the header with source file location for an error message using the static message handler */ 787 /** prints an error message, acting like the vprintf() command using the static message handler */ 831 /** Method to set the error printing method. Setting the error printing method to NULL will suspend all error methods. 833 * @note The error printing method is static variable. That means all occurring errors are handled via that methods 836 SCIP_DECL_ERRORPRINTING((*errorPrinting)),/**< error message print method of message handler, or NULL */ 846 * @note The error printing method is a static variable. This means that all occurring errors are handled via this method. void SCIPmessageVFPrintVerbInfo(SCIP_MESSAGEHDLR *messagehdlr, SCIP_VERBLEVEL verblevel, SCIP_VERBLEVEL msgverblevel, FILE *file, const char *formatstr, va_list ap) Definition: message.c:707 SCIP_Bool SCIPmessagehdlrIsQuiet(SCIP_MESSAGEHDLR *messagehdlr) Definition: message.c:894 void SCIPmessagePrintErrorHeader(const char *sourcefile, int sourceline) Definition: message.c:761 void SCIPmessageFPrintVerbInfo(SCIP_MESSAGEHDLR *messagehdlr, SCIP_VERBLEVEL verblevel, SCIP_VERBLEVEL msgverblevel, FILE *file, const char *formatstr,...) Definition: message.c:690 void SCIPmessageSetErrorPrintingDefault(void) Definition: message.c:848 static void messagehdlrOpenLogfile(SCIP_MESSAGEHDLR *messagehdlr, const char *filename) Definition: message.c:220 static void messagePrintDialog(SCIP_MESSAGEHDLR *messagehdlr, FILE *file, const char *msg) Definition: message.c:168 static void messagePrintWarning(SCIP_MESSAGEHDLR *messagehdlr, const char *msg) Definition: message.c:154 datastructures for problem statistics void SCIPmessagehdlrCapture(SCIP_MESSAGEHDLR *messagehdlr) Definition: message.c:323 SCIP_RETCODE SCIPmessagehdlrCreate(SCIP_MESSAGEHDLR **messagehdlr, SCIP_Bool bufferedoutput, const char *filename, SCIP_Bool quiet, SCIP_DECL_MESSAGEWARNING((*messagewarning)), SCIP_DECL_MESSAGEDIALOG((*messagedialog)), SCIP_DECL_MESSAGEINFO((*messageinfo)), SCIP_DECL_MESSAGEHDLRFREE((*messagehdlrfree)), SCIP_MESSAGEHDLRDATA *messagehdlrdata) Definition: message.c:279 Definition: type_message.h:41 Definition: struct_message.h:35 void SCIPmessageVPrintInfo(SCIP_MESSAGEHDLR *messagehdlr, const char *formatstr, va_list ap) Definition: message.c:592 Definition: type_message.h:46 void SCIPmessageVPrintError(const char *formatstr, va_list ap) Definition: message.c:788 void SCIPmessagehdlrSetLogfile(SCIP_MESSAGEHDLR *messagehdlr, const char *filename) Definition: message.c:377 void SCIPmessagePrintVerbInfo(SCIP_MESSAGEHDLR *messagehdlr, SCIP_VERBLEVEL verblevel, SCIP_VERBLEVEL msgverblevel, const char *formatstr,...) Definition: message.c:662 void SCIPmessagePrintWarning(SCIP_MESSAGEHDLR *messagehdlr, const char *formatstr,...) Definition: message.c:411 SCIP_RETCODE SCIPmessagehdlrRelease(SCIP_MESSAGEHDLR **messagehdlr) Definition: message.c:332 Definition: type_retcode.h:33 void SCIPmessageVPrintVerbInfo(SCIP_MESSAGEHDLR *messagehdlr, SCIP_VERBLEVEL verblevel, SCIP_VERBLEVEL msgverblevel, const char *formatstr, va_list ap) Definition: message.c:678 void SCIPmessageFPrintWarning(SCIP_MESSAGEHDLR *messagehdlr, const char *formatstr,...) Definition: message.c:435 static SCIP_RETCODE messagehdlrFree(SCIP_MESSAGEHDLR **messagehdlr) Definition: message.c:240 void SCIPmessagePrintInfo(SCIP_MESSAGEHDLR *messagehdlr, const char *formatstr,...) Definition: message.c:578 void SCIPmessagePrintDialog(SCIP_MESSAGEHDLR *messagehdlr, const char *formatstr,...) Definition: message.c:494 public data structures and miscellaneous methods void SCIPmessagehdlrSetQuiet(SCIP_MESSAGEHDLR *messagehdlr, SCIP_Bool quiet) Definition: message.c:395 FILE * SCIPmessagehdlrGetLogfile(SCIP_MESSAGEHDLR *messagehdlr) Definition: message.c:883 static SCIP_DECL_ERRORPRINTING(errorPrintingDefault) Definition: message.c:129 void SCIPmessageVPrintDialog(SCIP_MESSAGEHDLR *messagehdlr, const char *formatstr, va_list ap) Definition: message.c:508 void SCIPmessageFPrintDialog(SCIP_MESSAGEHDLR *messagehdlr, FILE *file, const char *formatstr,...) Definition: message.c:518 void SCIPmessageVFPrintDialog(SCIP_MESSAGEHDLR *messagehdlr, FILE *file, const char *formatstr, va_list ap) Definition: message.c:533 void SCIPmessageVFPrintInfo(SCIP_MESSAGEHDLR *messagehdlr, FILE *file, const char *formatstr, va_list ap) Definition: message.c:617 SCIP_RETCODE SCIPmessagehdlrSetData(SCIP_MESSAGEHDLR *messagehdlr, SCIP_MESSAGEHDLRDATA *messagehdlrdata) Definition: message.c:361 void SCIPmessageSetErrorPrinting(SCIP_DECL_ERRORPRINTING((*errorPrinting)), void *data) Definition: message.c:835 void SCIPmessageFPrintInfo(SCIP_MESSAGEHDLR *messagehdlr, FILE *file, const char *formatstr,...) Definition: message.c:602 void SCIPmessageVFPrintWarning(SCIP_MESSAGEHDLR *messagehdlr, const char *formatstr, va_list ap) Definition: message.c:449 static void messagePrintInfo(SCIP_MESSAGEHDLR *messagehdlr, FILE *file, const char *msg) Definition: message.c:194 type definitions for message output methods static void handleMessage(SCIP_MESSAGEHDLR *messagehdlr, SCIP_DECL_MESSAGEOUTPUTFUNC(outputfunc), FILE *file1, SCIP_Bool usefile1, FILE *file2, SCIP_Bool usefile2, const char *msg, char *buffer, int *bufferlen) Definition: message.c:48 void SCIPmessageVPrintWarning(SCIP_MESSAGEHDLR *messagehdlr, const char *formatstr, va_list ap) Definition: message.c:425 SCIP_MESSAGEHDLRDATA * messagehdlrdata Definition: struct_message.h:41 common defines and data types used in all packages of SCIP Definition: type_retcode.h:43 SCIP_MESSAGEHDLRDATA * SCIPmessagehdlrGetData(SCIP_MESSAGEHDLR *messagehdlr) Definition: message.c:871 memory allocation routines |