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-2019 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 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 SCIP_EXPORT SCIP_FILE* SCIPfopen(const char *path, const char *mode);
37 SCIP_EXPORT SCIP_FILE* SCIPfdopen(int fildes, const char *mode);
38 SCIP_EXPORT size_t SCIPfread(void *ptr, size_t size, size_t nmemb, SCIP_FILE *stream);
39 SCIP_EXPORT size_t SCIPfwrite(const void *ptr, size_t size, size_t nmemb, SCIP_FILE *stream);
40 SCIP_EXPORT int SCIPfprintf(SCIP_FILE *stream, const char *format, ...);
41 SCIP_EXPORT int SCIPfputc(int c, SCIP_FILE *stream);
42 SCIP_EXPORT int SCIPfputs(const char *s, SCIP_FILE *stream);
43 SCIP_EXPORT int SCIPfgetc(SCIP_FILE *stream);
44 SCIP_EXPORT char* SCIPfgets(char *s, int size, SCIP_FILE *stream);
45 SCIP_EXPORT int SCIPfflush(SCIP_FILE *stream);
46 SCIP_EXPORT int SCIPfseek(SCIP_FILE *stream, long offset, int whence);
47 SCIP_EXPORT void SCIPrewind(SCIP_FILE *stream);
48 SCIP_EXPORT long SCIPftell(SCIP_FILE *stream);
49 SCIP_EXPORT int SCIPfeof(SCIP_FILE *stream);
51 
52 #ifdef __cplusplus
53 }
54 #endif
55 
56 #endif
SCIP_EXPORT SCIP_FILE * SCIPfdopen(int fildes, const char *mode)
Definition: fileio.c:145
SCIP_EXPORT int SCIPfgetc(SCIP_FILE *stream)
Definition: fileio.c:182
SCIP_EXPORT int SCIPfprintf(SCIP_FILE *stream, const char *format,...)
Definition: fileio.c:160
#define SCIP_EXPORT
Definition: def.h:98
SCIP_EXPORT size_t SCIPfwrite(const void *ptr, size_t size, size_t nmemb, SCIP_FILE *stream)
Definition: fileio.c:155
SCIP_EXPORT int SCIPfputc(int c, SCIP_FILE *stream)
Definition: fileio.c:172
struct SCIP_File SCIP_FILE
Definition: pub_fileio.h:34
SCIP_EXPORT long SCIPftell(SCIP_FILE *stream)
Definition: fileio.c:209
SCIP_EXPORT SCIP_FILE * SCIPfopen(const char *path, const char *mode)
Definition: fileio.c:140
SCIP_EXPORT int SCIPfeof(SCIP_FILE *stream)
Definition: fileio.c:214
SCIP_EXPORT int SCIPfseek(SCIP_FILE *stream, long offset, int whence)
Definition: fileio.c:199
SCIP_EXPORT int SCIPfputs(const char *s, SCIP_FILE *stream)
Definition: fileio.c:177
SCIP_EXPORT char * SCIPfgets(char *s, int size, SCIP_FILE *stream)
Definition: fileio.c:187
SCIP_EXPORT size_t SCIPfread(void *ptr, size_t size, size_t nmemb, SCIP_FILE *stream)
Definition: fileio.c:150
SCIP_EXPORT int SCIPfclose(SCIP_FILE *fp)
Definition: fileio.c:219
SCIP_EXPORT void SCIPrewind(SCIP_FILE *stream)
Definition: fileio.c:204
common defines and data types used in all packages of SCIP
SCIP_EXPORT int SCIPfflush(SCIP_FILE *stream)
Definition: fileio.c:194