d95d16027c01f60c7e8f08e09380abafadfd516c
[pspp-builds.git] / src / language / data-io / case-map.h
1 /* PSPP - computes sample statistics.
2    Copyright (C) 1997-9, 2000, 2006, 2007 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 LANGUAGE_DATA_IO_CASE_MAP_H
20 #define LANGUAGE_DATA_IO_CASE_MAP_H 1
21
22 /* Case map.
23
24    A case map copies data from a case that corresponds for one
25    dictionary to a case that corresponds to a second dictionary
26    derived from the first by, optionally, deleting, reordering,
27    or renaming variables.  (No new variables may be created.)
28    */
29
30 struct dictionary;
31 struct ccase;
32
33 void case_map_prepare (struct dictionary *);
34 struct case_map *case_map_finish (struct dictionary *);
35 void case_map_execute (const struct case_map *,
36                        const struct ccase *, struct ccase *);
37 void case_map_destroy (struct case_map *);
38
39 #endif /* language/data-io/case-map.h */