Change license from GPLv2+ to GPLv3+.
[pspp-builds.git] / src / data / sys-file-reader.h
1 /* PSPP - a program for statistical analysis.
2    Copyright (C) 1997-9, 2000 Free Software Foundation, Inc.
3
4    This program is free software: you can redistribute it and/or modify
5    it under the terms of the GNU General Public License as published by
6    the Free Software Foundation, either version 3 of the License, or
7    (at your option) any later version.
8
9    This program is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12    GNU General Public License for more details.
13
14    You should have received a copy of the GNU General Public License
15    along with this program.  If not, see <http://www.gnu.org/licenses/>. */
16
17 #ifndef SFM_READ_H
18 #define SFM_READ_H 1
19
20 #include <stdbool.h>
21 #include <stdio.h>
22
23 #include <libpspp/float-format.h>
24 #include <libpspp/integer-format.h>
25
26 /* Reading system files. */
27
28 /* System file info that doesn't fit in struct dictionary. */
29 struct sfm_read_info
30   {
31     char creation_date[10];     /* `dd mmm yy' plus a null. */
32     char creation_time[9];      /* `hh:mm:ss' plus a null. */
33     enum integer_format integer_format;
34     enum float_format float_format;
35     bool compressed;            /* 0=no, 1=yes. */
36     int case_cnt;               /* -1 if unknown. */
37     char product[61];           /* Product name plus a null. */
38   };
39
40 struct dictionary;
41 struct file_handle;
42 struct ccase;
43 struct casereader *sfm_open_reader (struct file_handle *,
44                                     struct dictionary **,
45                                     struct sfm_read_info *);
46 bool sfm_detect (FILE *);
47
48 #endif /* sys-file-reader.h */