ultimatepp/bazaar/BoostPyTest/UppValue.cpp
kohait bbc2ef5b80 bazaar: BoostPyTest: Value export for the common types, including String and ValueArray
git-svn-id: svn://ultimatepp.org/upp/trunk@3340 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2011-04-13 21:12:59 +00:00

18 lines
419 B
C++

#include "UppValue.h"
Value Valuehelloval() { return 2244; }
int Valuedoubleit(const Value& v) { return int(v) * 2; }
void export_UppValue()
{
to_python_converter<Value, Value_to_python>();
Value_from_python();
def("helloval", Valuehelloval);
def("doubleit", Valuedoubleit);
}
void export_UppValueArray()
{
to_python_converter<ValueArray, ValueArray_to_python>();
ValueArray_from_python();
}