X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fdata%2Fcase-sink.h;fp=src%2Fdata%2Fcase-sink.h;h=0000000000000000000000000000000000000000;hb=92c09e564002d356d20fc1e2e131027ef89f6748;hp=ec2cfd21414ff0a291256e53d89aa24702230db5;hpb=661b9ee29cbb6b89c4ea53a05b8a4eb3a5028de0;p=pspp-builds.git diff --git a/src/data/case-sink.h b/src/data/case-sink.h deleted file mode 100644 index ec2cfd21..00000000 --- a/src/data/case-sink.h +++ /dev/null @@ -1,68 +0,0 @@ -/* PSPP - computes sample statistics. - Copyright (C) 1997-9, 2000, 2006 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 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. */ - -#ifndef CASE_SINK_H -#define CASE_SINK_H 1 - -#include -#include - -struct ccase; -struct dictionary; - -/* A case sink. */ -struct case_sink - { - const struct case_sink_class *class; /* Class. */ - void *aux; /* Auxiliary data. */ - struct casefile_factory *factory ; /* Factory used to create - the destination */ - size_t value_cnt; /* Number of `union value's in case. */ - }; - -/* A case sink class. */ -struct case_sink_class - { - const char *name; /* Identifying name. */ - - /* Opens the sink for writing. */ - void (*open) (struct case_sink *); - - /* Writes a case to the sink. */ - bool (*write) (struct case_sink *, const struct ccase *); - - /* Closes and destroys the sink. */ - void (*destroy) (struct case_sink *); - - /* Closes the sink and returns a source that can read back - the cases that were written, perhaps transformed in some - way. The sink must still be separately destroyed by - calling destroy(). */ - struct case_source *(*make_source) (struct case_sink *); - }; - -extern const struct case_sink_class null_sink_class; - -struct casefile_factory ; -struct case_sink *create_case_sink (const struct case_sink_class *, - const struct dictionary *, - struct casefile_factory *, - void *); -void free_case_sink (struct case_sink *); - -#endif /* case-sink.h */