X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fdata%2Fattributes.h;h=8795f8feafb189011fbb7741fee7af63fde74061;hb=52c54183e360053b1845e46cb96cd44a0cf96040;hp=ab7b12e301730cdfcc12d67e3e4ff2312bd19cc8;hpb=2ca3267c1110bbff675c560b19d02defb96ee2f9;p=pspp diff --git a/src/data/attributes.h b/src/data/attributes.h index ab7b12e301..8795f8feaf 100644 --- a/src/data/attributes.h +++ b/src/data/attributes.h @@ -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;