pspp-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pspp-cvs] Changes to pspp/src/pfm-write.h


From: Ben Pfaff
Subject: [Pspp-cvs] Changes to pspp/src/pfm-write.h
Date: Sun, 21 Aug 2005 03:21:10 -0400

Index: pspp/src/pfm-write.h
diff -u pspp/src/pfm-write.h:1.3 pspp/src/pfm-write.h:1.4
--- pspp/src/pfm-write.h:1.3    Mon May  2 06:21:20 2005
+++ pspp/src/pfm-write.h        Sun Aug 21 07:21:06 2005
@@ -20,12 +20,32 @@
 #ifndef PFM_WRITE_H
 #define PFM_WRITE_H
 
+#include <stdbool.h>
+
 /* Portable file writing. */
 
+/* Portable file types. */
+enum pfm_type
+  {
+    PFM_COMM,   /* Formatted for communication. */
+    PFM_TAPE    /* Formatted for tape. */
+  };
+
+/* Portable file writing options. */
+struct pfm_write_options 
+  {
+    bool create_writeable;      /* File perms: writeable or read/only? */
+    enum pfm_type type;         /* Type of portable file (TODO). */
+    int digits;                 /* Digits of precision. */
+  };
+
 struct file_handle;
 struct dictionary;
 struct ccase;
-struct pfm_writer *pfm_open_writer (struct file_handle *, struct dictionary *);
+struct pfm_writer *pfm_open_writer (struct file_handle *, struct dictionary *,
+                                    struct pfm_write_options);
+struct pfm_write_options pfm_writer_default_options (void);
+
 int pfm_write_case (struct pfm_writer *, struct ccase *);
 void pfm_close_writer (struct pfm_writer *);
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]