Detailed Description
C++ wrapper for message handlers.
This class defines the interface for message handlers implemented in C++. Note that all functions are pure virtual (these functions have to be implemented).
Definition at line 47 of file objmessagehdlr.h.
C++ wrapper for message handlers. More...
#include <objmessagehdlr.h>
Public Member Functions | |
ObjMessagehdlr (SCIP_Bool bufferedoutput) | |
virtual | ~ObjMessagehdlr () |
ObjMessagehdlr & | operator= (const ObjMessagehdlr &o)=delete |
ObjMessagehdlr & | operator= (ObjMessagehdlr &&o)=delete |
virtual void | scip_error (SCIP_MESSAGEHDLR *messagehdlr, FILE *file, const char *msg) |
virtual | SCIP_DECL_MESSAGEWARNING (scip_warning) |
virtual | SCIP_DECL_MESSAGEDIALOG (scip_dialog) |
virtual | SCIP_DECL_MESSAGEINFO (scip_info) |
virtual | SCIP_DECL_MESSAGEHDLRFREE (scip_free) |
Data Fields | |
const SCIP_Bool | scip_bufferedoutput_ |
Constructor & Destructor Documentation
◆ ObjMessagehdlr()
|
inlineexplicit |
default constructor
- Parameters
-
bufferedoutput should the output be buffered up to the next newline?
Definition at line 54 of file objmessagehdlr.h.
◆ ~ObjMessagehdlr()
|
inlinevirtual |
Member Function Documentation
◆ operator=() [1/2]
|
delete |
assignment of polymorphic classes causes slicing and is therefore disabled.
Referenced by ~ObjMessagehdlr().
◆ operator=() [2/2]
|
delete |
assignment of polymorphic classes causes slicing and is therefore disabled.
◆ scip_error()
|
inlinevirtual |
error message print method of message handler
- Note
- This function can be activated by calling SCIPsetStaticErrorPrintingMessagehdlr().
- See also
- SCIP_DECL_ERRORPRINTING(x) in type_message.h
- Parameters
-
messagehdlr the message handler itself file file stream to print into (NULL for stderr) msg string to output into the file (or NULL to flush)
Definition at line 78 of file objmessagehdlr.h.
Referenced by SCIP_DECL_ERRORPRINTING().
◆ SCIP_DECL_MESSAGEWARNING()
|
inlinevirtual |
warning message print method of message handler
- See also
- SCIP_DECL_MESSAGEWARNING(x) in type_message.h
Definition at line 91 of file objmessagehdlr.h.
◆ SCIP_DECL_MESSAGEDIALOG()
|
inlinevirtual |
dialog message print method of message handler
- See also
- SCIP_DECL_MESSAGEDIALOG(x) in type_message.h
Definition at line 100 of file objmessagehdlr.h.
◆ SCIP_DECL_MESSAGEINFO()
|
inlinevirtual |
info message print method of message handler
- See also
- SCIP_DECL_MESSAGEINFO(x) in type_message.h
Definition at line 109 of file objmessagehdlr.h.
◆ SCIP_DECL_MESSAGEHDLRFREE()
|
inlinevirtual |
destructor of message handler to free message handler data
- See also
- SCIP_DECL_MESSAGEHDLRFREE(x) in type_message.h
Definition at line 118 of file objmessagehdlr.h.
References SCIP_Bool, SCIP_OKAY, SCIPcreateObjMessagehdlr(), SCIPgetObjMessagehdlr(), and SCIPsetStaticErrorPrintingMessagehdlr().
Field Documentation
◆ scip_bufferedoutput_
const SCIP_Bool scip::ObjMessagehdlr::scip_bufferedoutput_ |
should the output be buffered up to the next newline?
Definition at line 51 of file objmessagehdlr.h.
Referenced by SCIPcreateObjMessagehdlr().