add_to_namespace.hpp 780 B

1234567891011121314151617181920212223
  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 ADD_TO_NAMESPACE_DWA200286_HPP
  6. # define ADD_TO_NAMESPACE_DWA200286_HPP
  7. # include <boost/python/object_fwd.hpp>
  8. namespace boost { namespace python { namespace objects {
  9. //
  10. // A setattr that's "smart" about function overloading (and docstrings).
  11. //
  12. BOOST_PYTHON_DECL void add_to_namespace(
  13. object const& name_space, char const* name, object const& attribute);
  14. BOOST_PYTHON_DECL void add_to_namespace(
  15. object const& name_space, char const* name, object const& attribute, char const* doc);
  16. }}} // namespace boost::python::objects
  17. #endif // ADD_TO_NAMESPACE_DWA200286_HPP