pxd: initial work
[pspp] / src / data / attributes.h
index ab7b12e301730cdfcc12d67e3e4ff2312bd19cc8..8795f8feafb189011fbb7741fee7af63fde74061 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPP - a program for statistical analysis.
-   Copyright (C) 2008, 2011, 2012 Free Software Foundation, Inc.
+   Copyright (C) 2008, 2010, 2011, 2012 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
@@ -19,6 +19,8 @@
 
 #include "libpspp/hmapx.h"
 
+struct pxd;
+
 /* This header supports custom attribute of the sort maintained
    by the DATAFILE ATTRIBUTE and VARIABLE ATTRIBUTE commands.
 
@@ -41,6 +43,9 @@ void attribute_set_value (struct attribute *, size_t index, const char *);
 void attribute_del_value (struct attribute *, size_t index);
 size_t attribute_get_n_values (const struct attribute *);
 
+struct pxd_object *attribute_save (const struct attribute *, struct pxd *);
+struct attribute *attribute_load (struct pxd_object *, const struct pxd *);
+
 struct attrset 
   {
     struct hmap map;
@@ -57,6 +62,9 @@ void attrset_add (struct attrset *, struct attribute *);
 void attrset_delete (struct attrset *, const char *);
 void attrset_clear (struct attrset *);
 
+struct pxd_object *attrset_save (const struct attrset *, struct pxd *);
+void attrset_load (struct attrset *, struct pxd_object *, const struct pxd *);
+
 struct attrset_iterator
   {
     struct hmap_node *node;