Scippy

SCIP

Solving Constraint Integer Programs

struct_message.h
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2 /* */
3 /* This file is part of the program and library */
4 /* SCIP --- Solving Constraint Integer Programs */
5 /* */
6 /* Copyright (C) 2002-2016 Konrad-Zuse-Zentrum */
7 /* fuer Informationstechnik Berlin */
8 /* */
9 /* SCIP is distributed under the terms of the ZIB Academic License. */
10 /* */
11 /* You should have received a copy of the ZIB Academic License */
12 /* along with SCIP; see the file COPYING. If not email to scip@zib.de. */
13 /* */
14 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15 
16 /**@file struct_message.h
17  * @brief datastructures for problem statistics
18  * @author Tobias Achterberg
19  */
20 
21 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
22 
23 #ifndef __SCIP_STRUCT_MESSAGE_H__
24 #define __SCIP_STRUCT_MESSAGE_H__
25 
26 
27 #include "scip/def.h"
28 #include "scip/type_message.h"
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 /** message handler to redirect output */
36 {
37  SCIP_DECL_MESSAGEWARNING((*messagewarning));/**< warning message print method of message handler */
38  SCIP_DECL_MESSAGEDIALOG((*messagedialog));/**< dialog message print method of message handler */
39  SCIP_DECL_MESSAGEINFO((*messageinfo)); /**< info message print method of message handler */
40  SCIP_DECL_MESSAGEHDLRFREE((*messagehdlrfree)); /**< destructor of message handler to free message handler data */
41  SCIP_MESSAGEHDLRDATA* messagehdlrdata; /**< message handler data */
42  FILE* logfile; /**< log file where to copy messages into */
43  SCIP_Bool quiet; /**< should screen messages be suppressed? */
44  char* warningbuffer; /**< buffer for constructing complete warning output lines */
45  char* dialogbuffer; /**< buffer for constructing complete dialog output lines */
46  char* infobuffer; /**< buffer for constructing complete info output lines */
47  int warningbufferlen; /**< currently used space in the warning buffer */
48  int dialogbufferlen; /**< currently used space in the dialog buffer */
49  int infobufferlen; /**< currently used space in the info buffer */
50  int nuses; /**< number of message handler uses */
51 };
52 
53 #ifdef __cplusplus
54 }
55 #endif
56 
57 #endif
struct SCIP_MessagehdlrData SCIP_MESSAGEHDLRDATA
Definition: type_message.h:51
SCIP_DECL_MESSAGEHDLRFREE((*messagehdlrfree))
SCIP_DECL_MESSAGEDIALOG((*messagedialog))
SCIP_DECL_MESSAGEWARNING((*messagewarning))
SCIP_DECL_MESSAGEINFO((*messageinfo))
#define SCIP_Bool
Definition: def.h:53
type definitions for message output methods
SCIP_MESSAGEHDLRDATA * messagehdlrdata
common defines and data types used in all packages of SCIP