ultimatepp/bazaar/BoostPyTest/world.cpp
kohait 6dbb8ad60d bazaar: BoostPyTest: first attemt to structurize the export, more to be done, cleanup of unnessecary using namespace's
git-svn-id: svn://ultimatepp.org/upp/trunk@3360 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2011-04-19 15:05:45 +00:00

18 lines
298 B
C++

#include "world.h"
using namespace boost::python;
NAMESPACE_UPP
void export_world()
{
ONCELOCK
{
scope().attr("__doc__") = "Hello module's docstring";
class_<World>("World", "A simple world")
.def("greet", &World::greet)
.def("set", &World::set)
;
}
}
END_UPP_NAMESPACE