X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fprocedure.h;h=0e8d286bde1c481cb6b6b166009cdd7aa4f45dda;hb=e49bb94c97b852448da96c340802048011ee2ace;hp=3b501df90b8cb96b1675e508fae662de5eba5c85;hpb=5862de297bb487c81660beb3796d5c612eeb12b7;p=pspp-builds.git diff --git a/src/data/procedure.h b/src/data/procedure.h index 3b501df9..0e8d286b 100644 --- a/src/data/procedure.h +++ b/src/data/procedure.h @@ -1,5 +1,5 @@ /* PSPP - computes sample statistics. - Copyright (C) 1997-9, 2000, 2006 Free Software Foundation, Inc. + Copyright (C) 1997-9, 2000, 2006, 2007 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -23,6 +23,7 @@ #include #include +#include #include struct ccase; @@ -57,9 +58,20 @@ bool proc_cancel_temporary_transformations (struct dataset *ds); /* Procedures. */ -struct dataset * create_dataset (void); +struct dictionary ; +typedef void replace_source_callback (struct case_source *); +typedef void replace_dictionary_callback (struct dictionary *); + + +struct dataset * create_dataset (struct casefile_factory *fact, + replace_source_callback *, + replace_dictionary_callback * + ); + void destroy_dataset (struct dataset *); +struct casefile_factory *dataset_get_casefile_factory (const struct dataset *); + void proc_set_source (struct dataset *ds, struct case_source *); bool proc_has_source (const struct dataset *ds); @@ -104,8 +116,6 @@ struct ccase *lagged_case (const struct dataset *ds, int n_before); inline struct dictionary *dataset_dict (const struct dataset *ds); inline void dataset_set_dict ( struct dataset *ds, struct dictionary *dict); -inline int dataset_n_lag (const struct dataset *ds); -inline void dataset_set_n_lag (struct dataset *ds, int n_lag); - +void dataset_need_lag (struct dataset *ds, int n_before); #endif /* procedure.h */