Skip to content
Snippets Groups Projects
Commit 0275bd06 authored by Martyn Gigg's avatar Martyn Gigg
Browse files

Add symbol export macros to NdArray class

parent dcd30d94
No related branches found
No related tags found
No related merge requests found
#ifndef PYTHONINTERFACE_KERNEL_NDARRAY_H_ #ifndef PYTHONINTERFACE_KERNEL_NDARRAY_H_
#define PYTHONINTERFACE_KERNEL_NDARRAY_H_ #define PYTHONINTERFACE_KERNEL_NDARRAY_H_
#include "MantidKernel/System.h" #include "MantidPythonInterface/kernel/DllConfig.h"
#include <boost/python/object.hpp> #include <boost/python/object.hpp>
...@@ -15,7 +15,7 @@ namespace NumPy { ...@@ -15,7 +15,7 @@ namespace NumPy {
* *
* Only minimal functionality has been ported here. * Only minimal functionality has been ported here.
*/ */
class NdArray : public boost::python::object { class PYTHON_KERNEL_DLL NdArray : public boost::python::object {
public: public:
BOOST_PYTHON_FORWARD_OBJECT_CONSTRUCTORS(NdArray, boost::python::object); BOOST_PYTHON_FORWARD_OBJECT_CONSTRUCTORS(NdArray, boost::python::object);
...@@ -35,7 +35,7 @@ namespace converter { ...@@ -35,7 +35,7 @@ namespace converter {
* Register ndarray as a type that manages a PyObject* internally. * Register ndarray as a type that manages a PyObject* internally.
*/ */
template <> template <>
struct object_manager_traits<Mantid::PythonInterface::NumPy::NdArray> { struct PYTHON_KERNEL_DLL object_manager_traits<Mantid::PythonInterface::NumPy::NdArray> {
BOOST_STATIC_CONSTANT(bool, is_specialized = true); BOOST_STATIC_CONSTANT(bool, is_specialized = true);
static bool check(PyObject *obj); static bool check(PyObject *obj);
static python::detail::new_reference adopt(PyObject *obj); static python::detail::new_reference adopt(PyObject *obj);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment