grasp_output_stream_t.h
Go to the documentation of this file.
1 /*
2  * Copyright 2016 CNRS & Universite Lille 1. All rights reserved.
3  *
4  * Licensed under the GRASP Open Source License V1.0 (see LICENSE file)
5  */
6 
7 /*
8  * File: grasp_output_stream_t.h
9  * Author: fuertes
10  *
11  * Created on June 27, 2014, 4:36 PM
12  */
13 
14 #ifndef GRASP_OUTPUT_STREAM_T_H
15 #define GRASP_OUTPUT_STREAM_T_H
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 #include <stdbool.h>
22 #include <stdio.h>
23 
24 typedef struct GRASP_STREAM_{
25  char *filename; // Patern of filenames that it will generate
26  bool none; // If this is not going to print anything
27  bool screen; // If it stream is going to print in screen
28  FILE *file; // File opened by this stram
29  bool writable; // If it stream is writable
30  bool open; // If the file of this stream is opened
31  bool error; // If the stream is going to be stderr
33 
34 
35 #ifdef __cplusplus
36 }
37 #endif
38 
39 #endif /* GRASP_OUTPUT_STREAM_T_H */
40 
FILE * file
Definition: grasp_output_stream_t.h:28
Definition: grasp_output_stream_t.h:24
bool error
Definition: grasp_output_stream_t.h:31
bool open
Definition: grasp_output_stream_t.h:30
bool writable
Definition: grasp_output_stream_t.h:29
bool none
Definition: grasp_output_stream_t.h:26
char * filename
Definition: grasp_output_stream_t.h:25
struct GRASP_STREAM_ grasp_output_stream
bool screen
Definition: grasp_output_stream_t.h:27