X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fcasewriter.h;h=146cc654608f754e2f7178c9738c477c7644627b;hb=refs%2Ftags%2Fsid-i386-build159;hp=577225ac18c111ec3858114bd0eec57eff3e5f91;hpb=f5c108becd49d78f4898cab11352291f5689d24e;p=pspp-builds.git diff --git a/src/data/casewriter.h b/src/data/casewriter.h index 577225ac..146cc654 100644 --- a/src/data/casewriter.h +++ b/src/data/casewriter.h @@ -1,26 +1,23 @@ -/* PSPP - computes sample statistics. - Copyright (C) 2007 Free Software Foundation, Inc. +/* PSPP - a program for statistical analysis. + Copyright (C) 2007, 2009 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 - published by the Free Software Foundation; either version 2 of the - License, or (at your option) any later version. + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. - This program is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. */ + along with this program. If not, see . */ #ifndef DATA_CASEWRITER_H #define DATA_CASEWRITER_H 1 #include -#include #include #include @@ -29,6 +26,8 @@ struct casewriter; void casewriter_write (struct casewriter *, struct ccase *); bool casewriter_destroy (struct casewriter *); +const struct caseproto *casewriter_get_proto (const struct casewriter *); + struct casereader *casewriter_make_reader (struct casewriter *); struct casewriter *casewriter_rename (struct casewriter *); @@ -37,15 +36,15 @@ bool casewriter_error (const struct casewriter *); void casewriter_force_error (struct casewriter *); const struct taint *casewriter_get_taint (const struct casewriter *); -struct casewriter *mem_writer_create (size_t value_cnt); -struct casewriter *tmpfile_writer_create (size_t value_cnt); -struct casewriter *autopaging_writer_create (size_t value_cnt); +struct casewriter *mem_writer_create (const struct caseproto *); +struct casewriter *tmpfile_writer_create (const struct caseproto *); +struct casewriter *autopaging_writer_create (const struct caseproto *); struct casewriter * casewriter_create_translator (struct casewriter *, - void (*translate) (const struct ccase *input, - struct ccase *output, - void *aux), + const struct caseproto *translated_proto, + struct ccase *(*translate) (struct ccase *input, + void *aux), bool (*destroy) (void *aux), void *aux);