Scippy

UG

Ubiquity Generator framework

ScipParaObjMessageHdlr Class Reference

#include <scipParaObjMessageHdlr.h>

Inheritance diagram for ScipParaObjMessageHdlr:

Public Member Functions

 ScipParaObjMessageHdlr (UG::ParaComm *comm, FILE *file, SCIP_Bool quiet, SCIP_Bool bufferedoutput)
 
virtual ~ScipParaObjMessageHdlr ()
 
FILE * getlogfile () const
 
virtual void scip_error (SCIP_MESSAGEHDLR *messagehdlr, FILE *file, const char *msg)
 
virtual void scip_warning (SCIP_MESSAGEHDLR *messagehdlr, FILE *file, const char *msg)
 
virtual void scip_dialog (SCIP_MESSAGEHDLR *messagehdlr, FILE *file, const char *msg)
 
virtual void scip_info (SCIP_MESSAGEHDLR *messagehdlr, FILE *file, const char *msg)
 

Private Member Functions

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

Private Attributes

UG::ParaCommcomm
 
FILE * logfile
 
SCIP_Bool quiet
 

Detailed Description

C++ wrapper object for file readers

Definition at line 47 of file scipParaObjMessageHdlr.h.

Constructor & Destructor Documentation

◆ ScipParaObjMessageHdlr()

ScipParaObjMessageHdlr ( UG::ParaComm inComm,
FILE *  inFile,
SCIP_Bool  inQuiet,
SCIP_Bool  inBufferedoutput 
)

default constructor

constructor

Definition at line 45 of file scipParaObjMessageHdlr.cpp.

References ScipParaObjMessageHdlr::comm, ScipParaObjMessageHdlr::logfile, and ScipParaObjMessageHdlr::quiet.

◆ ~ScipParaObjMessageHdlr()

~ScipParaObjMessageHdlr ( )
virtual

destructor

Definition at line 57 of file scipParaObjMessageHdlr.cpp.

Member Function Documentation

◆ getlogfile()

FILE * getlogfile ( ) const

return log file

Definition at line 73 of file scipParaObjMessageHdlr.h.

References ScipParaObjMessageHdlr::logfile.

Referenced by SCIP_DECL_ERRORPRINTING().

◆ logMessage()

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

◆ scip_dialog()

void scip_dialog ( SCIP_MESSAGEHDLR *  messagehdlr,
FILE *  file,
const char *  msg 
)
virtual

dialog message print method of message handler

This method is invoked, if SCIP wants to display a dialog message to the screen or a file

Parameters
messagehdlrthe message handler itself
filefile stream to print into
msgstring to output into the file

Definition at line 113 of file scipParaObjMessageHdlr.cpp.

References ScipParaObjMessageHdlr::logMessage().

◆ scip_error()

void scip_error ( SCIP_MESSAGEHDLR *  messagehdlr,
FILE *  file,
const char *  msg 
)
virtual

error message print method of message handler

This method is invoked, if SCIP wants to display an error message to the screen or a file

Parameters
messagehdlrthe message handler itself
filefile stream to print into
msgstring to output into the file

Definition at line 86 of file scipParaObjMessageHdlr.cpp.

References ScipParaObjMessageHdlr::logMessage().

Referenced by SCIP_DECL_ERRORPRINTING().

◆ scip_info()

void scip_info ( SCIP_MESSAGEHDLR *  messagehdlr,
FILE *  file,
const char *  msg 
)
virtual

info message print method of message handler

This method is invoked, if SCIP wants to display an information message to the screen or a file

Parameters
messagehdlrthe message handler itself
filefile stream to print into
msgstring to output into the file

Definition at line 126 of file scipParaObjMessageHdlr.cpp.

References ScipParaObjMessageHdlr::logMessage().

◆ scip_warning()

void scip_warning ( SCIP_MESSAGEHDLR *  messagehdlr,
FILE *  file,
const char *  msg 
)
virtual

warning message print method of message handler

This method is invoked, if SCIP wants to display a warning message to the screen or a file

Parameters
messagehdlrthe message handler itself
filefile stream to print into
msgstring to output into the file

Definition at line 99 of file scipParaObjMessageHdlr.cpp.

References ScipParaObjMessageHdlr::logMessage().

Member Data Documentation

◆ comm

UG::ParaComm* comm
private

◆ logfile

FILE* logfile
private

◆ quiet

SCIP_Bool quiet
private

should screen messages be suppressed?

Definition at line 52 of file scipParaObjMessageHdlr.h.

Referenced by ScipParaObjMessageHdlr::logMessage(), and ScipParaObjMessageHdlr::ScipParaObjMessageHdlr().