Scippy

SCIP

Solving Constraint Integer Programs

message_default.c File Reference

Detailed Description

default message handler

Author
Stefan Heinz

Definition in file message_default.c.

Go to the source code of this file.

Functions

static void logMessage (FILE *file, const char *msg)
 
static SCIP_DECL_MESSAGEWARNING (messageWarningDefault)
 
static SCIP_DECL_MESSAGEDIALOG (messageDialogDefault)
 
static SCIP_DECL_MESSAGEINFO (messageInfoDefault)
 
SCIP_RETCODE SCIPcreateMessagehdlrDefault (SCIP_MESSAGEHDLR **messagehdlr, SCIP_Bool bufferedoutput, const char *filename, SCIP_Bool quiet)
 

Function Documentation

◆ logMessage()

static void logMessage ( FILE *  file,
const char *  msg 
)
static

prints a message to the given file stream and writes the same messate to the log file

Parameters
filefile stream to print message into
msgmessage to print (or NULL to flush)

Definition at line 34 of file message_default.c.

References NULL.

Referenced by SCIP_DECL_MESSAGEDIALOG(), SCIP_DECL_MESSAGEINFO(), and SCIP_DECL_MESSAGEWARNING().

◆ SCIP_DECL_MESSAGEWARNING()

static SCIP_DECL_MESSAGEWARNING ( messageWarningDefault  )
static

warning message print method of message handler

Definition at line 50 of file message_default.c.

References logMessage(), and NULL.

◆ SCIP_DECL_MESSAGEDIALOG()

static SCIP_DECL_MESSAGEDIALOG ( messageDialogDefault  )
static

dialog message print method of message handler

Definition at line 60 of file message_default.c.

References logMessage().

◆ SCIP_DECL_MESSAGEINFO()

static SCIP_DECL_MESSAGEINFO ( messageInfoDefault  )
static

info message print method of message handler

Definition at line 67 of file message_default.c.

References logMessage().

◆ SCIPcreateMessagehdlrDefault()

SCIP_RETCODE SCIPcreateMessagehdlrDefault ( SCIP_MESSAGEHDLR **  messagehdlr,
SCIP_Bool  bufferedoutput,
const char *  filename,
SCIP_Bool  quiet 
)

Create default message handler. To free the message handler use SCIPmessagehdlrRelease().

Parameters
messagehdlrpointer to store message handler
bufferedoutputshould the output be buffered up to the next newline?
filenamename of log file, or NULL (stdout)
quietshould screen messages be suppressed?

Definition at line 73 of file message_default.c.

References NULL, SCIP_CALL, SCIP_OKAY, and SCIPmessagehdlrCreate().

Referenced by doScipCreate().