20 |
#ifndef SFM_WRITE_H |
#ifndef SFM_WRITE_H |
21 |
#define SFM_WRITE_H 1 |
#define SFM_WRITE_H 1 |
22 |
|
|
23 |
|
#include <stdbool.h> |
24 |
|
|
25 |
/* Writing system files. */ |
/* Writing system files. */ |
26 |
|
|
27 |
|
/* Options for creating a system file. */ |
28 |
|
struct sfm_write_options |
29 |
|
{ |
30 |
|
bool create_writeable; /* File perms: writeable or read/only? */ |
31 |
|
bool compress; /* Compress file? */ |
32 |
|
int version; /* System file version (currently 2 or 3). */ |
33 |
|
}; |
34 |
|
|
35 |
struct file_handle; |
struct file_handle; |
36 |
struct dictionary; |
struct dictionary; |
37 |
struct ccase; |
struct ccase; |
38 |
struct sfm_writer *sfm_open_writer (struct file_handle *, struct dictionary *, |
struct sfm_writer *sfm_open_writer (struct file_handle *, struct dictionary *, |
39 |
int compress, short omit_longnames); |
struct sfm_write_options); |
40 |
|
struct sfm_write_options sfm_writer_default_options (void); |
41 |
|
|
42 |
int sfm_write_case (struct sfm_writer *, struct ccase *); |
int sfm_write_case (struct sfm_writer *, struct ccase *); |
43 |
void sfm_close_writer (struct sfm_writer *); |
void sfm_close_writer (struct sfm_writer *); |