Remove "Written by Ben Pfaff <blp@gnu.org>" lines everywhere.
[pspp-builds.git] / src / data / por-file-reader.h
1 /* PSPP - computes sample statistics.
2    Copyright (C) 1997-9, 2000 Free Software Foundation, Inc.
3
4    This program is free software; you can redistribute it and/or
5    modify it under the terms of the GNU General Public License as
6    published by the Free Software Foundation; either version 2 of the
7    License, or (at your option) any later version.
8
9    This program is distributed in the hope that it will be useful, but
10    WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12    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, write to the Free Software
16    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17    02110-1301, USA. */
18
19 #ifndef PFM_READ_H
20 #define PFM_READ_H
21
22 /* Portable file reading. */
23
24 #include <stdbool.h>
25 #include <stdio.h>
26
27 /* Information produced by pfm_read_dictionary() that doesn't fit into
28    a dictionary struct. */
29 struct pfm_read_info
30   {
31     char creation_date[11];     /* `dd mm yyyy' plus a null. */
32     char creation_time[9];      /* `hh:mm:ss' plus a null. */
33     char product[61];           /* Product name plus a null. */
34     char subproduct[61];        /* Subproduct name plus a null. */
35   };
36
37 struct dictionary;
38 struct file_handle;
39 struct ccase;
40 struct pfm_reader *pfm_open_reader (struct file_handle *,
41                                     struct dictionary **,
42                                     struct pfm_read_info *);
43 bool pfm_read_case (struct pfm_reader *, struct ccase *);
44 bool pfm_read_error (const struct pfm_reader *);
45 void pfm_close_reader (struct pfm_reader *);
46 bool pfm_detect (FILE *);
47
48 #endif /* por-file-reader.h */