Added abstract factory to create casefiles. Updated procedures to use
[pspp-builds.git] / src / data / case-sink.c
index 999834c72aa4dde5f5964085f4fe0ee57527f138..d7be3fa681c6c3f24c7da8159e29fcdee6f90c28 100644 (file)
    class CLASS and auxiliary data AUX. */
 struct case_sink *
 create_case_sink (const struct case_sink_class *class,
-                  const struct dictionary *dict,
+                  const struct dictionary *dict, struct casefile_factory *f,
                   void *aux) 
 {
   struct case_sink *sink = xmalloc (sizeof *sink);
   sink->class = class;
   sink->value_cnt = dict_get_compacted_value_cnt (dict);
   sink->aux = aux;
+  sink->factory = f;
   return sink;
 }