ultimatepp/bazaar/CtrlLibBoostPy/CtrlCore.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

21 lines
451 B
C++

#include "CtrlCore.h"
using namespace boost::python;
NAMESPACE_UPP
Value CtrlGetData(const Ctrl& c) { return c.GetData(); }
void CtrlSetData(Ctrl& c, const Value& data) { c.SetData(data); }
void export_CtrlCore()
{
ONCELOCK
{
scope().attr("__doc__") = "Ctrl's docstring";
class_<Ctrl, boost::noncopyable>("Ctrl", "An Upp Ctrl", no_init)
.def("getdata", CtrlGetData)
.def("setdata", CtrlSetData)
;
}
}
END_UPP_NAMESPACE