Xdmf.i.bak 658 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
/*
XdmfPython.cpp:
swig -v -c++ -make_default -python -shadow -I/share/kleiter/boost-1.41.0-install/include -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(XdmfGridPtr) boost::shared_ptr<XdmfGrid>;

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

%include XdmfObject.hpp

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