Scippy

SCIP

Solving Constraint Integer Programs

type_message.h File Reference

Detailed Description

type definitions for message output methods

Author
Tobias Achterberg

This file defines the interface for message handlers implemented in C.

Definition in file type_message.h.

#include <stdio.h>

Go to the source code of this file.

Macros

#define SCIP_DECL_MESSAGEOUTPUTFUNC(x)   void x (SCIP_MESSAGEHDLR* messagehdlr, FILE* file, const char* msg)
 
#define SCIP_DECL_ERRORPRINTING(x)   void x (void* data, FILE* file, const char* msg)
 
#define SCIP_DECL_MESSAGEWARNING(x)   void x (SCIP_MESSAGEHDLR* messagehdlr, FILE* file, const char* msg)
 
#define SCIP_DECL_MESSAGEDIALOG(x)   void x (SCIP_MESSAGEHDLR* messagehdlr, FILE* file, const char* msg)
 
#define SCIP_DECL_MESSAGEINFO(x)   void x (SCIP_MESSAGEHDLR* messagehdlr, FILE* file, const char* msg)
 
#define SCIP_DECL_MESSAGEHDLRFREE(x)   SCIP_RETCODE x (SCIP_MESSAGEHDLR* messagehdlr)
 

Typedefs

typedef enum SCIP_VerbLevel SCIP_VERBLEVEL
 
typedef struct SCIP_Messagehdlr SCIP_MESSAGEHDLR
 
typedef struct SCIP_MessagehdlrData SCIP_MESSAGEHDLRDATA
 

Enumerations

enum  SCIP_VerbLevel {
  SCIP_VERBLEVEL_NONE = 0,
  SCIP_VERBLEVEL_DIALOG = 1,
  SCIP_VERBLEVEL_MINIMAL = 2,
  SCIP_VERBLEVEL_NORMAL = 3,
  SCIP_VERBLEVEL_HIGH = 4,
  SCIP_VERBLEVEL_FULL = 5
}
 

Macro Definition Documentation

◆ SCIP_DECL_MESSAGEOUTPUTFUNC

#define SCIP_DECL_MESSAGEOUTPUTFUNC (   x)    void x (SCIP_MESSAGEHDLR* messagehdlr, FILE* file, const char* msg)

generic messagehandler output function

Should be equal to SCIP_DECL_MESSAGEWARNING, SCIP_DECL_MESSAGEDIALOG, and SCIP_DECL_MESSAGEINFO

Definition at line 57 of file type_message.h.

◆ SCIP_DECL_ERRORPRINTING

#define SCIP_DECL_ERRORPRINTING (   x)    void x (void* data, FILE* file, const char* msg)

error message print method

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

Note
This function is independent of any message handler.

input:

  • data : data pointer
  • file : file stream to print into
  • msg : string to output into the file (or NULL to flush)

Definition at line 71 of file type_message.h.

◆ SCIP_DECL_MESSAGEWARNING

#define SCIP_DECL_MESSAGEWARNING (   x)    void x (SCIP_MESSAGEHDLR* messagehdlr, FILE* file, const char* msg)

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.

input:

  • messagehdlr : the message handler itself
  • file : file stream to print into
  • msg : string to output into the file (or NULL to flush)

Definition at line 82 of file type_message.h.

◆ SCIP_DECL_MESSAGEDIALOG

#define SCIP_DECL_MESSAGEDIALOG (   x)    void x (SCIP_MESSAGEHDLR* messagehdlr, FILE* file, const char* msg)

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.

input:

  • messagehdlr : the message handler itself
  • file : file stream to print into
  • msg : string to output into the file (or NULL to flush)

Definition at line 93 of file type_message.h.

◆ SCIP_DECL_MESSAGEINFO

#define SCIP_DECL_MESSAGEINFO (   x)    void x (SCIP_MESSAGEHDLR* messagehdlr, FILE* file, const char* msg)

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.

input:

  • messagehdlr : the message handler itself
  • file : file stream to print into
  • msg : string to output into the file (or NULL to flush)

Definition at line 104 of file type_message.h.

◆ SCIP_DECL_MESSAGEHDLRFREE

#define SCIP_DECL_MESSAGEHDLRFREE (   x)    SCIP_RETCODE x (SCIP_MESSAGEHDLR* messagehdlr)

destructor of message handler to free message handler data

This method is invoked, if SCIP wants to free a message handler.

input:

  • messagehdlr : the message handler itself

Definition at line 113 of file type_message.h.

Typedef Documentation

◆ SCIP_VERBLEVEL

Definition at line 48 of file type_message.h.

◆ SCIP_MESSAGEHDLR

message handler

Definition at line 50 of file type_message.h.

◆ SCIP_MESSAGEHDLRDATA

typedef struct SCIP_MessagehdlrData SCIP_MESSAGEHDLRDATA

message handler data

Definition at line 51 of file type_message.h.

Enumeration Type Documentation

◆ SCIP_VerbLevel

verbosity levels of output

Enumerator
SCIP_VERBLEVEL_NONE 

only error and warning messages are displayed

SCIP_VERBLEVEL_DIALOG 

only interactive dialogs, errors, and warnings are displayed

SCIP_VERBLEVEL_MINIMAL 

only important messages are displayed

SCIP_VERBLEVEL_NORMAL 

standard messages are displayed

SCIP_VERBLEVEL_HIGH 

a lot of information is displayed

SCIP_VERBLEVEL_FULL 

all messages are displayed

Definition at line 39 of file type_message.h.