projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added abstract factory to create casefiles. Updated procedures to use
[pspp-builds.git]
/
src
/
data
/
case-sink.h
diff --git
a/src/data/case-sink.h
b/src/data/case-sink.h
index 087c0601edd385fc613b52743a1c4f71b1c95ef7..ec2cfd21414ff0a291256e53d89aa24702230db5 100644
(file)
--- a/
src/data/case-sink.h
+++ b/
src/data/case-sink.h
@@
-30,6
+30,8
@@
struct case_sink
{
const struct case_sink_class *class; /* Class. */
void *aux; /* Auxiliary data. */
{
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. */
};
size_t value_cnt; /* Number of `union value's in case. */
};
@@
-56,8
+58,10
@@
struct case_sink_class
extern const struct case_sink_class null_sink_class;
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 case_sink *create_case_sink (const struct case_sink_class *,
const struct dictionary *,
+ struct casefile_factory *,
void *);
void free_case_sink (struct case_sink *);
void *);
void free_case_sink (struct case_sink *);