Scippy

SCIP

Solving Constraint Integer Programs

objmessagehdlr.cpp File Reference

Detailed Description

C++ wrapper for message handlers.

Author
Tobias Achterberg

Definition in file objmessagehdlr.cpp.

#include <cassert>
#include "objmessagehdlr.h"

Go to the source code of this file.

Functions

static SCIP_DECL_ERRORPRINTING (messagehdlrErrorObj)
 
static SCIP_DECL_MESSAGEWARNING (messagehdlrWarningObj)
 
static SCIP_DECL_MESSAGEDIALOG (messagehdlrDialogObj)
 
static SCIP_DECL_MESSAGEINFO (messagehdlrInfoObj)
 
static SCIP_DECL_MESSAGEHDLRFREE (messagehdlrFree)
 
SCIP_RETCODE SCIPcreateObjMessagehdlr (SCIP_MESSAGEHDLR **messagehdlr, scip::ObjMessagehdlr *objmessagehdlr, SCIP_Bool deleteobject)
 
scip::ObjMessagehdlrSCIPgetObjMessagehdlr (SCIP_MESSAGEHDLR *messagehdlr)
 
void SCIPsetStaticErrorPrintingMessagehdlr (SCIP_MESSAGEHDLR *messagehdlr)
 

Function Documentation

◆ SCIP_DECL_ERRORPRINTING()

static SCIP_DECL_ERRORPRINTING ( messagehdlrErrorObj  )
static

error message print method of message handler

Definition at line 61 of file objmessagehdlr.cpp.

References scip::ObjMessagehdlr::scip_error().

◆ SCIP_DECL_MESSAGEWARNING()

static SCIP_DECL_MESSAGEWARNING ( messagehdlrWarningObj  )
static

warning message print method of message handler

Definition at line 72 of file objmessagehdlr.cpp.

References NULL, and SCIPmessagehdlrGetData().

◆ SCIP_DECL_MESSAGEDIALOG()

static SCIP_DECL_MESSAGEDIALOG ( messagehdlrDialogObj  )
static

dialog message print method of message handler

Definition at line 86 of file objmessagehdlr.cpp.

References NULL, and SCIPmessagehdlrGetData().

◆ SCIP_DECL_MESSAGEINFO()

static SCIP_DECL_MESSAGEINFO ( messagehdlrInfoObj  )
static

info message print method of message handler

Definition at line 100 of file objmessagehdlr.cpp.

References NULL, and SCIPmessagehdlrGetData().

◆ SCIP_DECL_MESSAGEHDLRFREE()

static SCIP_DECL_MESSAGEHDLRFREE ( messagehdlrFree  )
static

destructor of message handler to free message handler data

Definition at line 113 of file objmessagehdlr.cpp.

References NULL, SCIP_CALL, SCIP_OKAY, SCIPmessagehdlrGetData(), and SCIPmessagehdlrSetData().

◆ SCIPcreateObjMessagehdlr()

SCIP_RETCODE SCIPcreateObjMessagehdlr ( SCIP_MESSAGEHDLR **  messagehdlr,
scip::ObjMessagehdlr objmessagehdlr,
SCIP_Bool  deleteobject 
)

creates the message handler for the given message handler object

Parameters
messagehdlrpointer to store the message handler
objmessagehdlrmessage handler object
deleteobjectshould the message handler object be deleted when message handler is freed?

Definition at line 142 of file objmessagehdlr.cpp.

References FALSE, messagehdlrFree(), NULL, scip::ObjMessagehdlr::scip_bufferedoutput_, SCIP_CALL, SCIP_OKAY, and SCIPmessagehdlrCreate().

Referenced by scip::ObjMessagehdlr::SCIP_DECL_MESSAGEHDLRFREE().

◆ SCIPgetObjMessagehdlr()

scip::ObjMessagehdlr* SCIPgetObjMessagehdlr ( SCIP_MESSAGEHDLR messagehdlr)

returns the message handler object for the given message handler

Parameters
messagehdlrmessage handler

Definition at line 175 of file objmessagehdlr.cpp.

References NULL, and SCIPmessagehdlrGetData().

Referenced by scip::ObjMessagehdlr::SCIP_DECL_MESSAGEHDLRFREE(), and SCIPsetStaticErrorPrintingMessagehdlr().

◆ SCIPsetStaticErrorPrintingMessagehdlr()

void SCIPsetStaticErrorPrintingMessagehdlr ( SCIP_MESSAGEHDLR messagehdlr)

set static error output function to the corresponding function of message handler

Parameters
messagehdlrmessage handler

Definition at line 188 of file objmessagehdlr.cpp.

References NULL, SCIPgetObjMessagehdlr(), and SCIPmessageSetErrorPrinting().

Referenced by scip::ObjMessagehdlr::SCIP_DECL_MESSAGEHDLRFREE().