14 # pragma warning(disable:4231)
17 # pragma warning(disable:4251)
20 # pragma warning(disable:4275)
23 # pragma warning(disable:4800)
27 #include <boost/python.hpp>
34 using namespace boost::python;
42 class_ < Factory < RepBase >,
47 "A private base class for PointRepFactory.",
57 bases < Factory < RepBase > >,
58 PointRepFactory, boost::noncopyable >
60 "A factory for creating object whose class derive from PointRep.",
63 .def (
"instance", &PointRepFactory::instance,
64 return_value_policy < reference_existing_object > (),
65 "instance () -> PointRepFactory\n"
67 "Returns the instance of the PointRepFactory." )
69 .staticmethod (
"instance" )
71 .def (
"names", &PointRepFactory::names,
72 return_value_policy < copy_const_reference > (),
73 "names () -> sequence\n"
75 "Returns the names of available PointRep classes." )
77 .def (
"create", &PointRepFactory::create,
78 return_value_policy < reference_existing_object > (),
79 "create ( string ) -> PointRep\n"
81 "Returns a PointRep object of type named in string." )