2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-23 05:42:30 +00:00

initial commit

[SVN r15238]
This commit is contained in:
Dave Abrahams
2002-09-09 17:17:59 +00:00
parent dcb6a88c63
commit 33ee2a43c5

View File

@@ -0,0 +1,32 @@
// Copyright David Abrahams 2002. Permission to copy, use,
// modify, sell and distribute this software is granted provided this
// copyright notice appears in all copies. This software is provided
// "as is" without express or implied warranty, and with no claim as
// to its suitability for any purpose.
#ifndef ENUM_BASE_DWA200298_HPP
# define ENUM_BASE_DWA200298_HPP
# include <boost/python/object_core.hpp>
# include <boost/python/type_id.hpp>
# include <boost/python/converter/to_python_function_type.hpp>
namespace boost { namespace python { namespace objects {
struct BOOST_PYTHON_DECL enum_base : python::api::object
{
protected:
enum_base(
char const* name
, converter::to_python_function_t
, converter::convertible_function
, converter::constructor_function
, type_info);
void add_value(char const* name, long value);
static PyObject* to_python(PyTypeObject* type, long x);
};
}}} // namespace boost::python::object
#endif // ENUM_BASE_DWA200298_HPP