pxd: initial work
[pspp] / src / data / missing-values.h
index 4d046faec3a1be411c4b5be5b2f0e93881b0e182..504d06ad674e9e2bb6db5ab7a6440d8d653bb4d4 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPP - a program for statistical analysis.
-   Copyright (C) 2005, 2009 Free Software Foundation, Inc.
+   Copyright (C) 2005, 2009, 2013-2015 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -37,6 +37,7 @@
 #include "data/value.h"
 
 struct pool;
+struct pxd;
 
 /* Missing values for long string variables after the first
    MV_MAX_STRING bytes must be all spaces. */
@@ -94,7 +95,7 @@ void mv_get_range (const struct missing_values *, double *low, double *high);
 
 /* Adding and modifying discrete values. */
 bool mv_add_value (struct missing_values *, const union value *);
-bool mv_add_str (struct missing_values *, const uint8_t[]);
+bool mv_add_str (struct missing_values *, const uint8_t[], size_t len);
 bool mv_add_num (struct missing_values *, double);
 void mv_pop_value (struct missing_values *, union value *);
 bool mv_replace_value (struct missing_values *, const union value *, int idx);
@@ -103,4 +104,9 @@ bool mv_replace_value (struct missing_values *, const union value *, int idx);
 bool mv_add_range (struct missing_values *, double low, double high);
 void mv_pop_range (struct missing_values *, double *low, double *high);
 
+/* Saving and loading. */
+struct pxd_object *mv_save (const struct missing_values *, struct pxd *);
+void mv_load (struct missing_values *,
+              struct pxd_object *, const struct pxd *);
+
 #endif /* data/missing-values.h */