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 2002-2022 Zuse Institute Berlin */
7 /* */
8 /* Licensed under the Apache License, Version 2.0 (the "License"); */
9 /* you may not use this file except in compliance with the License. */
10 /* You may obtain a copy of the License at */
11 /* */
12 /* http://www.apache.org/licenses/LICENSE-2.0 */
13 /* */
14 /* Unless required by applicable law or agreed to in writing, software */
15 /* distributed under the License is distributed on an "AS IS" BASIS, */
16 /* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
17 /* See the License for the specific language governing permissions and */
18 /* limitations under the License. */
19 /* */
20 /* You should have received a copy of the Apache-2.0 license */
21 /* along with SCIP; see the file LICENSE. If not visit scipopt.org. */
22 /* */
23 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
24 
25 /**@file struct_message.h
26  * @ingroup INTERNALAPI
27  * @brief datastructures for problem statistics
28  * @author Tobias Achterberg
29  */
30 
31 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
32 
33 #ifndef __SCIP_STRUCT_MESSAGE_H__
34 #define __SCIP_STRUCT_MESSAGE_H__
35 
36 
37 #include "scip/def.h"
38 #include "scip/type_message.h"
39 
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
43 
44 /** message handler to redirect output */
46 {
47  SCIP_DECL_MESSAGEWARNING((*messagewarning));/**< warning message print method of message handler */
48  SCIP_DECL_MESSAGEDIALOG((*messagedialog));/**< dialog message print method of message handler */
49  SCIP_DECL_MESSAGEINFO((*messageinfo)); /**< info message print method of message handler */
50  SCIP_DECL_MESSAGEHDLRFREE((*messagehdlrfree)); /**< destructor of message handler to free message handler data */
51  SCIP_MESSAGEHDLRDATA* messagehdlrdata; /**< message handler data */
52  FILE* logfile; /**< log file where to copy messages into */
53  SCIP_Bool quiet; /**< should screen messages be suppressed? */
54  char* warningbuffer; /**< buffer for constructing complete warning output lines */
55  char* dialogbuffer; /**< buffer for constructing complete dialog output lines */
56  char* infobuffer; /**< buffer for constructing complete info output lines */
57  int warningbufferlen; /**< currently used space in the warning buffer */
58  int dialogbufferlen; /**< currently used space in the dialog buffer */
59  int infobufferlen; /**< currently used space in the info buffer */
60  int nuses; /**< number of message handler uses */
61 };
62 
63 #ifdef __cplusplus
64 }
65 #endif
66 
67 #endif
struct SCIP_MessagehdlrData SCIP_MESSAGEHDLRDATA
Definition: type_message.h:60
SCIP_DECL_MESSAGEHDLRFREE((*messagehdlrfree))
SCIP_DECL_MESSAGEDIALOG((*messagedialog))
SCIP_DECL_MESSAGEWARNING((*messagewarning))
SCIP_DECL_MESSAGEINFO((*messageinfo))
#define SCIP_Bool
Definition: def.h:93
type definitions for message output methods
SCIP_MESSAGEHDLRDATA * messagehdlrdata
common defines and data types used in all packages of SCIP