X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fdata%2Fcasewriter.h;h=87bf6f6abd9f2c398399b903c4654b5c702140af;hb=130ced32165dc409b1be560d3d7a581a7ba3c5ee;hp=a1d0807ee30de6fa7c659a9a73e2c1b2aaeaa74f;hpb=ed88deded6a59254dd55883308c4c20966efc77e;p=pspp-builds.git diff --git a/src/data/casewriter.h b/src/data/casewriter.h index a1d0807e..87bf6f6a 100644 --- a/src/data/casewriter.h +++ b/src/data/casewriter.h @@ -1,20 +1,18 @@ -/* PSPP - computes sample statistics. +/* PSPP - a program for statistical analysis. Copyright (C) 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 - 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 @@ -29,6 +27,8 @@ struct casewriter; void casewriter_write (struct casewriter *, struct ccase *); bool casewriter_destroy (struct casewriter *); +size_t casewriter_get_value_cnt (const struct casewriter *); + struct casereader *casewriter_make_reader (struct casewriter *); struct casewriter *casewriter_rename (struct casewriter *); @@ -42,7 +42,7 @@ struct casewriter *tmpfile_writer_create (size_t value_cnt); struct casewriter *autopaging_writer_create (size_t value_cnt); struct casewriter * -casewriter_create_translator (struct casewriter *, +casewriter_create_translator (struct casewriter *, size_t translated_value_cnt, void (*translate) (const struct ccase *input, struct ccase *output, void *aux),