ultimatepp/bazaar/BoostPyTest/world.cpp
kohait e95d3a2a6b bazaar: BoostPyTest extension of exports, cleanup, preparation for further extensions; CtrlProp: some fixes
git-svn-id: svn://ultimatepp.org/upp/trunk@3365 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2011-04-21 08:34:41 +00:00

20 lines
392 B
C++

#include "world.h"
using namespace boost::python;
//#include <iostream>
//using namespace std;
NAMESPACE_UPP
void export_world()
{
ONCELOCK
{
class_<World>("World", "A simple world")
.def("__str__", &World::greet) //somehow works only for print not for general return as string echo
.def("greet", &World::greet)
.def("set", &World::set)
;
}
}
END_UPP_NAMESPACE