X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fdata%2Fcasereader-provider.h;h=772209810a85e44c2f7474a44fcb25235735cf98;hb=80cc751377f06abdf4b9019dae2acce0ebfbb259;hp=2726f6831ab4dce66e5477df39c603726d4ab748;hpb=ed88deded6a59254dd55883308c4c20966efc77e;p=pspp
diff --git a/src/data/casereader-provider.h b/src/data/casereader-provider.h
index 2726f6831a..772209810a 100644
--- a/src/data/casereader-provider.h
+++ b/src/data/casereader-provider.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 . */
/* Definitions needed to implement a new type of casereader.
Code that only uses casereaders does not need this header.
@@ -41,7 +39,7 @@
#include
/* Casereader class for sequential data sources. */
-struct casereader_class
+struct casereader_class
{
/* Mandatory.
@@ -112,6 +110,8 @@ struct casereader *
casereader_create_sequential (const struct taint *,
size_t value_cnt, casenumber case_cnt,
const struct casereader_class *, void *);
+
+void *casereader_dynamic_cast (struct casereader *, const struct casereader_class *);
/* Casereader class for random-access data sources. */
struct casereader_random_class
@@ -144,7 +144,7 @@ struct casereader_random_class
void (*destroy) (struct casereader *reader, void *aux);
/* Mandatory.
-
+
A call to this function tells the callee that the CNT
cases at the beginning of READER will never be read again.
The casereader implementation should free any resources