1 // mds_utils/python/fileobj.i
3 // Copyright (c) 2014 - Michele De Stefano (micdestefano@users.sourceforge.net)
5 // Distributed under the MIT License (See accompanying file LICENSE)
7 %include "mds_utils/python/obj.i"
11 #include <mds_utils/python/fileobj.hpp>
15 %typemap(in) (mds_utils::python::FileObj) {
19 } catch (std::exception& e) {
20 PyErr_SetString(PyExc_RuntimeError,e.what());
25 %typemap(out) mds_utils::python::FileObj = mds_utils::python::Obj;
27 %typecheck(SWIG_TYPECHECK_POINTER) mds_utils::python::Sequence {
28 $1 = PyFile_Check($input);