X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fcasewriter.h;h=ffe7798a8f15d67267c5363ee15b80c4f62b227a;hb=81579d9e9f994fb2908f50af41c3eb033d216e58;hp=a526c56aed463b11f4f24fe0de92b47ba1aca1b5;hpb=43b1296aafe7582e7dbe6c2b6a8b478d7d9b0fcf;p=pspp-builds.git diff --git a/src/data/casewriter.h b/src/data/casewriter.h index a526c56a..ffe7798a 100644 --- a/src/data/casewriter.h +++ b/src/data/casewriter.h @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007, 2009, 2011 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 @@ -18,15 +18,16 @@ #define DATA_CASEWRITER_H 1 #include -#include -#include -#include +#include "data/transformations.h" +#include "libpspp/compiler.h" 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 *); @@ -35,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);