pxd: initial work
[pspp] / src / data / vector.h
index fc2bf9518d25bfb271095a2ba4935de4c9ccd1c3..831962965f03bf1442d07e76748d285f2e313fb3 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPP - a program for statistical analysis.
-   Copyright (C) 2006, 2011  Free Software Foundation, Inc.
+   Copyright (C) 2006, 2010-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
 #define DATA_VECTOR_H 1
 
 #include <stddef.h>
-#include "data/variable.h"
+#include "data/val-type.h"
 
 struct dictionary;
+struct pxd;
+struct variable;
 
 struct vector *vector_create (const char *name,
                               struct variable **var, size_t var_cnt);
@@ -34,6 +36,12 @@ enum val_type vector_get_type (const struct vector *);
 struct variable *vector_get_var (const struct vector *, size_t idx);
 size_t vector_get_var_cnt (const struct vector *);
 
+bool vector_is_valid_name (const char *name, bool issue_error);
+
 int compare_vector_ptrs_by_name (const void *a_, const void *b_);
 
+struct pxd_object *vector_save (const struct vector *, struct pxd *);
+struct vector *vector_load (struct pxd_object *, const struct pxd *,
+                            const struct dictionary *);
+
 #endif /* data/vector.h */