1 /* PSPP - a program for statistical analysis.
2 Copyright (C) 1997-9, 2000, 2006, 2007 Free Software Foundation, Inc.
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.
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.
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/>. */
23 #include <data/transformations.h>
24 #include <libpspp/compiler.h>
30 /* Transformations. */
32 void add_transformation (struct dataset *ds,
33 trns_proc_func *, trns_free_func *, void *);
34 void add_transformation_with_finalizer (struct dataset *ds,
37 trns_free_func *, void *);
38 size_t next_transformation (const struct dataset *ds);
40 bool proc_cancel_all_transformations (struct dataset *ds);
41 struct trns_chain *proc_capture_transformations (struct dataset *ds);
43 void proc_start_temporary_transformations (struct dataset *ds);
44 bool proc_in_temporary_transformations (const struct dataset *ds);
45 bool proc_make_temporary_transformations_permanent (struct dataset *ds);
46 bool proc_cancel_temporary_transformations (struct dataset *ds);
51 typedef void replace_source_callback (struct casereader *);
52 typedef void replace_dictionary_callback (struct dictionary *);
55 struct dataset * create_dataset (replace_source_callback *,
56 replace_dictionary_callback *);
58 void destroy_dataset (struct dataset *);
60 void proc_discard_active_file (struct dataset *);
61 void proc_set_active_file (struct dataset *,
62 struct casereader *, struct dictionary *);
63 bool proc_set_active_file_data (struct dataset *, struct casereader *);
64 bool proc_has_active_file (const struct dataset *ds);
66 void proc_discard_output (struct dataset *ds);
68 bool proc_execute (struct dataset *ds);
69 time_t time_of_last_procedure (struct dataset *ds);
71 struct casereader *proc_open (struct dataset *);
72 bool proc_is_open (const struct dataset *);
73 bool proc_commit (struct dataset *);
75 bool dataset_end_of_command (struct dataset *);
77 struct dictionary *dataset_dict (const struct dataset *ds);
78 const struct casereader *dataset_source (const struct dataset *ds);
81 struct ccase *lagged_case (const struct dataset *ds, int n_before);
82 void dataset_need_lag (struct dataset *ds, int n_before);
84 #endif /* procedure.h */