[goffice] [GOData] Add go_data_get_n_dimensions function.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: svn-commits-list gnome org
- Subject: [goffice] [GOData] Add go_data_get_n_dimensions function.
- Date: Thu, 23 Apr 2009 11:07:27 -0400 (EDT)
commit 6bd77453b263e86ea1e74c324e0b5664f87de8e3
Author: Emmanuel Pacaud <emmanuel pacaud lapp in2p3 fr>
Date: Thu Apr 23 16:54:00 2009 +0200
[GOData] Add go_data_get_n_dimensions function.
---
goffice/data/go-data.c | 13 +++++++++++++
goffice/data/go-data.h | 1 +
2 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/goffice/data/go-data.c b/goffice/data/go-data.c
index c172d5c..5c84953 100644
--- a/goffice/data/go-data.c
+++ b/goffice/data/go-data.c
@@ -258,6 +258,19 @@ go_data_is_varying_uniformly (GOData *data)
}
unsigned int
+go_data_get_n_dimensions (GOData *data)
+{
+ GODataClass const *data_class;
+
+ g_return_val_if_fail (GO_IS_DATA (data), 0);
+
+ data_class = GO_DATA_GET_CLASS (data);
+ g_return_val_if_fail (data_class->get_n_dimensions != NULL, 0);
+
+ return data_class->get_n_dimensions (data);
+}
+
+unsigned int
go_data_get_n_values (GOData *data)
{
GODataClass const *data_class;
diff --git a/goffice/data/go-data.h b/goffice/data/go-data.h
index 49e6728..b8c42e5 100644
--- a/goffice/data/go-data.h
+++ b/goffice/data/go-data.h
@@ -46,6 +46,7 @@ gboolean go_data_is_increasing (GOData *data);
gboolean go_data_is_decreasing (GOData *data);
gboolean go_data_is_varying_uniformly (GOData *data);
+unsigned int go_data_get_n_dimensions (GOData *data);
unsigned int go_data_get_n_values (GOData *data);
unsigned int go_data_get_vector_size (GOData *data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]