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
This commit is contained in:
kohait 2011-04-13 21:12:59 +00:00
parent d4d3d7f8ad
commit bbc2ef5b80
12 changed files with 153 additions and 13 deletions

View file

@ -47,6 +47,9 @@ BoostPyTest::BoostPyTest()
scope(upp_module).attr("slpy") = ptr(&slpy);
scope(upp_module).attr("sl") = ptr(&sl);
vc.SetData(123);
scope(upp_module).attr("vc") = ptr(&vc);
//the additional import is needless
String sc =
"p = hello.World()\n"
@ -65,6 +68,9 @@ BoostPyTest::BoostPyTest()
"print upp.sl.get()\n"
"upp.sl.set(75)\n"
"upp.vc.set(range(10))\n"
"upp.vc.get()\n"
;
con.cmd.SetData(sc);