From e957224c14ed6b5e89a9fc2bbf4ec11abff3445d Mon Sep 17 00:00:00 2001 From: Denis Rouzaud Date: Tue, 13 Jun 2017 16:57:33 +0200 Subject: [PATCH] fix class declaration --- python/core/qgsrange.sip | 14 ++++++++++++-- src/core/qgsrange.h | 6 ++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/python/core/qgsrange.sip b/python/core/qgsrange.sip index ab5c01a3597..997b9504c34 100644 --- a/python/core/qgsrange.sip +++ b/python/core/qgsrange.sip @@ -9,7 +9,8 @@ -template class QgsRange +template +class QgsRange { %Docstring A template based class for storing ranges (lower to upper values). @@ -27,6 +28,10 @@ template class QgsRange .. note:: not available in Python bindings (but class provided for template-based inheritance) +%End + +%TypeHeaderCode +#include "qgsrange.h" %End public: @@ -117,7 +122,8 @@ typedef QgsRange< double > QgsDoubleRange; typedef QgsRange< int > QgsIntRange; -template class QgsTemporalRange +template +class QgsTemporalRange { %Docstring A template based class for storing temporal ranges (beginning to end values). @@ -134,6 +140,10 @@ template class QgsTemporalRange .. note:: not available in Python bindings (but class provided for template-based inheritance) +%End + +%TypeHeaderCode +#include "qgsrange.h" %End public: diff --git a/src/core/qgsrange.h b/src/core/qgsrange.h index cbf87f0567f..c648d7eec0f 100644 --- a/src/core/qgsrange.h +++ b/src/core/qgsrange.h @@ -39,7 +39,8 @@ * \see QgsIntRange * \note not available in Python bindings (but class provided for template-based inheritance) */ -template class QgsRange +template +class CORE_EXPORT QgsRange { public: @@ -213,7 +214,8 @@ typedef QgsRange< int > QgsIntRange; * \see QgsDateRange * \note not available in Python bindings (but class provided for template-based inheritance) */ -template class QgsTemporalRange +template +class CORE_EXPORT QgsTemporalRange { public: