X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=src%2Fdata%2Fcasefile.h;h=2a4cfa8509327c35f1a4b65dd2b49ae152a18652;hb=4196dc548eca5925571a9f61fbb1008646f3a09d;hp=8c56dbbb9c52646ec8a4afd07dc0c5a5fea8529a;hpb=dcf9b154cbcaa35c3d8459a201b77eec8bcb30bd;p=pspp-builds.git diff --git a/src/data/casefile.h b/src/data/casefile.h index 8c56dbbb..2a4cfa85 100644 --- a/src/data/casefile.h +++ b/src/data/casefile.h @@ -1,5 +1,5 @@ /* PSPP - computes sample statistics. - Copyright (C) 2004 Free Software Foundation, Inc. + Copyright (C) 2004, 2006 Free Software Foundation, Inc. Written by Ben Pfaff . This program is free software; you can redistribute it and/or @@ -17,39 +17,56 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef HEADER_CASEFILE -#define HEADER_CASEFILE +#ifndef CASEFILE_H +#define CASEFILE_H +#include #include #include + struct ccase; -struct casefile; struct casereader; +struct casefile; +struct casefilter; + +/* Casereader functions */ + +struct casefile *casereader_get_casefile (const struct casereader *r); + +unsigned long casereader_cnum (const struct casereader *r); + +bool casereader_read (struct casereader *r, struct ccase *c); + +bool casereader_read_xfer (struct casereader *r, struct ccase *c); + +void casereader_destroy (struct casereader *r); + +struct casereader *casereader_clone(const struct casereader *r); + + +/* Casefile functions */ + +void casefile_destroy (struct casefile *cf); + +bool casefile_error (const struct casefile *cf); + +unsigned long casefile_get_case_cnt (const struct casefile *cf); + +size_t casefile_get_value_cnt (const struct casefile *cf); -struct casefile *casefile_create (size_t value_cnt); -void casefile_destroy (struct casefile *); +struct casereader *casefile_get_reader (const struct casefile *cf, struct casefilter *filter); -bool casefile_error (const struct casefile *); -int casefile_in_core (const struct casefile *); -bool casefile_to_disk (const struct casefile *); -bool casefile_sleep (const struct casefile *); +struct casereader *casefile_get_destructive_reader (struct casefile *cf); -size_t casefile_get_value_cnt (const struct casefile *); -unsigned long casefile_get_case_cnt (const struct casefile *); +bool casefile_append (struct casefile *cf, const struct ccase *c); -bool casefile_append (struct casefile *, const struct ccase *); -bool casefile_append_xfer (struct casefile *, struct ccase *); +bool casefile_append_xfer (struct casefile *cf, struct ccase *c); -void casefile_mode_reader (struct casefile *); -struct casereader *casefile_get_reader (const struct casefile *); -struct casereader *casefile_get_destructive_reader (struct casefile *); +bool casefile_sleep (const struct casefile *cf); -const struct casefile *casereader_get_casefile (const struct casereader *); -int casereader_read (struct casereader *, struct ccase *); -int casereader_read_xfer (struct casereader *, struct ccase *); -void casereader_destroy (struct casereader *); +bool casefile_in_core (const struct casefile *cf); -unsigned long casereader_cnum(const struct casereader *); +bool casefile_to_disk (const struct casefile *cf); -#endif /* casefile.h */ +#endif