source: NonGTP/Boost/boost/python/converter/arg_to_python_base.hpp @ 857

Revision 857, 989 bytes checked in by igarcia, 18 years ago (diff)
Line 
1// Copyright David Abrahams 2002.
2// Distributed under the Boost Software License, Version 1.0. (See
3// accompanying file LICENSE_1_0.txt or copy at
4// http://www.boost.org/LICENSE_1_0.txt)
5#ifndef ARG_TO_PYTHON_BASE_DWA200237_HPP
6# define ARG_TO_PYTHON_BASE_DWA200237_HPP
7# include <boost/python/handle.hpp>
8
9namespace boost { namespace python { namespace converter {
10
11struct registration;
12
13namespace detail
14{
15  struct BOOST_PYTHON_DECL arg_to_python_base
16# if !defined(BOOST_MSVC) || BOOST_MSVC <= 1300 || _MSC_FULL_VER > 13102179
17      : handle<>
18# endif
19  {
20      arg_to_python_base(void const volatile* source, registration const&);
21# if defined(BOOST_MSVC) && BOOST_MSVC > 1300 && _MSC_FULL_VER <= 13102179
22      PyObject* get() const { return m_ptr.get(); }
23      PyObject* release() { return m_ptr.release(); }
24   private:
25      handle<> m_ptr;
26# endif
27  };
28}
29
30}}} // namespace boost::python::converter
31
32#endif // ARG_TO_PYTHON_BASE_DWA200237_HPP
Note: See TracBrowser for help on using the repository browser.