All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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, 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, 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 */
|