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-2018 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 visit scip.zib.de. */
13 /* */
14 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15 
16 /**@file struct_message.h
17  * @ingroup INTERNALAPI
18  * @brief datastructures for problem statistics
19  * @author Tobias Achterberg
20  */
21 
22 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
23 
24 #ifndef __SCIP_STRUCT_MESSAGE_H__
25 #define __SCIP_STRUCT_MESSAGE_H__
26 
27 
28 #include "scip/def.h"
29 #include "scip/type_message.h"
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
35 /** message handler to redirect output */
37 {
38  SCIP_DECL_MESSAGEWARNING((*messagewarning));/**< warning message print method of message handler */
39  SCIP_DECL_MESSAGEDIALOG((*messagedialog));/**< dialog message print method of message handler */
40  SCIP_DECL_MESSAGEINFO((*messageinfo)); /**< info message print method of message handler */
41  SCIP_DECL_MESSAGEHDLRFREE((*messagehdlrfree)); /**< destructor of message handler to free message handler data */
42  SCIP_MESSAGEHDLRDATA* messagehdlrdata; /**< message handler data */
43  FILE* logfile; /**< log file where to copy messages into */
44  SCIP_Bool quiet; /**< should screen messages be suppressed? */
45  char* warningbuffer; /**< buffer for constructing complete warning output lines */
46  char* dialogbuffer; /**< buffer for constructing complete dialog output lines */
47  char* infobuffer; /**< buffer for constructing complete info output lines */
48  int warningbufferlen; /**< currently used space in the warning buffer */
49  int dialogbufferlen; /**< currently used space in the dialog buffer */
50  int infobufferlen; /**< currently used space in the info buffer */
51  int nuses; /**< number of message handler uses */
52 };
53 
54 #ifdef __cplusplus
55 }
56 #endif
57 
58 #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:62
type definitions for message output methods
SCIP_MESSAGEHDLRDATA * messagehdlrdata
common defines and data types used in all packages of SCIP