Scippy

SCIP

Solving Constraint Integer Programs

pub_fileio.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-2017 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 pub_fileio.h
17  * @ingroup PUBLICCOREAPI
18  * @brief wrapper functions to map file i/o to standard or zlib file i/o
19  * @author Tobias Achterberg
20  */
21 
22 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
23 
24 #ifndef __SCIP_PUB_FILEIO_H__
25 #define __SCIP_PUB_FILEIO_H__
26 
27 #include <stddef.h>
28 #include "scip/def.h"
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 typedef struct SCIP_File SCIP_FILE; /**< file data structure */
35 
36 EXTERN SCIP_FILE* SCIPfopen(const char *path, const char *mode);
37 EXTERN SCIP_FILE* SCIPfdopen(int fildes, const char *mode);
38 EXTERN size_t SCIPfread(void *ptr, size_t size, size_t nmemb, SCIP_FILE *stream);
39 EXTERN size_t SCIPfwrite(const void *ptr, size_t size, size_t nmemb, SCIP_FILE *stream);
40 EXTERN int SCIPfprintf(SCIP_FILE *stream, const char *format, ...);
41 EXTERN int SCIPfputc(int c, SCIP_FILE *stream);
42 EXTERN int SCIPfputs(const char *s, SCIP_FILE *stream);
43 EXTERN int SCIPfgetc(SCIP_FILE *stream);
44 EXTERN char* SCIPfgets(char *s, int size, SCIP_FILE *stream);
45 EXTERN int SCIPfflush(SCIP_FILE *stream);
46 EXTERN int SCIPfseek(SCIP_FILE *stream, long offset, int whence);
47 EXTERN void SCIPrewind(SCIP_FILE *stream);
48 EXTERN long SCIPftell(SCIP_FILE *stream);
49 EXTERN int SCIPfeof(SCIP_FILE *stream);
50 EXTERN int SCIPfclose(SCIP_FILE *fp);
51 
52 #ifdef __cplusplus
53 }
54 #endif
55 
56 #endif
EXTERN int SCIPfclose(SCIP_FILE *fp)
Definition: fileio.c:219
EXTERN size_t SCIPfwrite(const void *ptr, size_t size, size_t nmemb, SCIP_FILE *stream)
Definition: fileio.c:155
EXTERN size_t SCIPfread(void *ptr, size_t size, size_t nmemb, SCIP_FILE *stream)
Definition: fileio.c:150
EXTERN char * SCIPfgets(char *s, int size, SCIP_FILE *stream)
Definition: fileio.c:187
EXTERN SCIP_FILE * SCIPfdopen(int fildes, const char *mode)
Definition: fileio.c:145
EXTERN int SCIPfseek(SCIP_FILE *stream, long offset, int whence)
Definition: fileio.c:199
EXTERN int SCIPfeof(SCIP_FILE *stream)
Definition: fileio.c:214
#define EXTERN
Definition: def.h:87
struct SCIP_File SCIP_FILE
Definition: pub_fileio.h:34
EXTERN int SCIPfputc(int c, SCIP_FILE *stream)
Definition: fileio.c:172
EXTERN void SCIPrewind(SCIP_FILE *stream)
Definition: fileio.c:204
EXTERN long SCIPftell(SCIP_FILE *stream)
Definition: fileio.c:209
EXTERN int SCIPfflush(SCIP_FILE *stream)
Definition: fileio.c:194
EXTERN int SCIPfputs(const char *s, SCIP_FILE *stream)
Definition: fileio.c:177
EXTERN int SCIPfgetc(SCIP_FILE *stream)
Definition: fileio.c:182
EXTERN SCIP_FILE * SCIPfopen(const char *path, const char *mode)
Definition: fileio.c:140
common defines and data types used in all packages of SCIP
EXTERN int SCIPfprintf(SCIP_FILE *stream, const char *format,...)
Definition: fileio.c:160