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-2020 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 scipopt.org. */
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:149
SCIP_EXPORT int SCIPfgetc(SCIP_FILE *stream)
Definition: fileio.c:186
SCIP_EXPORT int SCIPfprintf(SCIP_FILE *stream, const char *format,...)
Definition: fileio.c:164
#define SCIP_EXPORT
Definition: def.h:100
SCIP_EXPORT size_t SCIPfwrite(const void *ptr, size_t size, size_t nmemb, SCIP_FILE *stream)
Definition: fileio.c:159
SCIP_EXPORT int SCIPfputc(int c, SCIP_FILE *stream)
Definition: fileio.c:176
struct SCIP_File SCIP_FILE
Definition: pub_fileio.h:34
SCIP_EXPORT long SCIPftell(SCIP_FILE *stream)
Definition: fileio.c:213
SCIP_EXPORT SCIP_FILE * SCIPfopen(const char *path, const char *mode)
Definition: fileio.c:144
SCIP_EXPORT int SCIPfeof(SCIP_FILE *stream)
Definition: fileio.c:218
SCIP_EXPORT int SCIPfseek(SCIP_FILE *stream, long offset, int whence)
Definition: fileio.c:203
SCIP_EXPORT int SCIPfputs(const char *s, SCIP_FILE *stream)
Definition: fileio.c:181
SCIP_EXPORT char * SCIPfgets(char *s, int size, SCIP_FILE *stream)
Definition: fileio.c:191
SCIP_EXPORT size_t SCIPfread(void *ptr, size_t size, size_t nmemb, SCIP_FILE *stream)
Definition: fileio.c:154
SCIP_EXPORT int SCIPfclose(SCIP_FILE *fp)
Definition: fileio.c:223
SCIP_EXPORT void SCIPrewind(SCIP_FILE *stream)
Definition: fileio.c:208
common defines and data types used in all packages of SCIP
SCIP_EXPORT int SCIPfflush(SCIP_FILE *stream)
Definition: fileio.c:198