Xdmf.i 739 Bytes
Newer Older
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
/*
XdmfPython.cpp:
swig -v -c++ -python -o XdmfPython.cpp Xdmf.i
*/

%include std_string.i
%include std_vector.i

namespace boost {
        template<class T> class shared_ptr
        {
        public:
                T * operator-> () const;
        };
}

%template(XdmfGeometryPtr) boost::shared_ptr<XdmfGeometry>;
%template(XdmfGridPtr) boost::shared_ptr<XdmfGrid>;
%template(XdmfObjPtr) boost::shared_ptr<XdmfObject>;
%template(XdmfTopologyPtr) boost::shared_ptr<XdmfTopology>;

%module Xdmf
%{
        #include <XdmfGeometry.hpp>
        #include <XdmfGrid.hpp>
        #include <XdmfObject.hpp>
        #include <XdmfTopology.hpp>
%}

%include XdmfObject.hpp

%include XdmfGeometry.hpp
%include XdmfGrid.hpp
%include XdmfTopology.hpp