1 /* PSPP - computes sample statistics.
2 Copyright (C) 1997-9, 2000, 2006, 2007 Free Software Foundation, Inc.
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.
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.
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
25 #include <data/transformations.h>
26 #include <libpspp/compiler.h>
32 /* Transformations. */
34 void add_transformation (struct dataset *ds,
35 trns_proc_func *, trns_free_func *, void *);
36 void add_transformation_with_finalizer (struct dataset *ds,
39 trns_free_func *, void *);
40 size_t next_transformation (const struct dataset *ds);
42 bool proc_cancel_all_transformations (struct dataset *ds);
43 struct trns_chain *proc_capture_transformations (struct dataset *ds);
45 void proc_start_temporary_transformations (struct dataset *ds);
46 bool proc_in_temporary_transformations (const struct dataset *ds);
47 bool proc_make_temporary_transformations_permanent (struct dataset *ds);
48 bool proc_cancel_temporary_transformations (struct dataset *ds);
53 typedef void replace_source_callback (struct casereader *);
54 typedef void replace_dictionary_callback (struct dictionary *);
57 struct dataset * create_dataset (replace_source_callback *,
58 replace_dictionary_callback *);
60 void destroy_dataset (struct dataset *);
62 void proc_discard_active_file (struct dataset *);
63 void proc_set_active_file (struct dataset *,
64 struct casereader *, struct dictionary *);
65 bool proc_set_active_file_data (struct dataset *, struct casereader *);
66 bool proc_has_active_file (const struct dataset *ds);
68 void proc_discard_output (struct dataset *ds);
70 bool proc_execute (struct dataset *ds);
71 time_t time_of_last_procedure (struct dataset *ds);
73 struct casereader *proc_open (struct dataset *);
74 bool proc_is_open (const struct dataset *);
75 bool proc_commit (struct dataset *);
77 bool dataset_end_of_command (struct dataset *);
79 struct dictionary *dataset_dict (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 */