ultimatepp/bazaar/BoostPyTest/BoostPyTest.h
kohait eb05c98dde basaar: Py: boost example and bugfix for PyConsoleCtrl: single statement echoes return value, multiple statements now execute as well
git-svn-id: svn://ultimatepp.org/upp/trunk@3335 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2011-04-11 11:59:30 +00:00

28 lines
570 B
C++

#ifndef _BoostPyTest_BoostPyTest_h_
#define _BoostPyTest_BoostPyTest_h_
#include <PyConsoleCtrl/PyConsoleCtrl.h>
using namespace boost::python;
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
struct World
{
void set(std::string msg) { this->msg = msg; }
std::string greet() { return msg; }
std::string msg;
};
#define LAYOUTFILE <BoostPyTest/BoostPyTest.lay>
#include <CtrlCore/lay.h>
class BoostPyTest : public WithBoostPyTestLayout<TopWindow> {
public:
typedef BoostPyTest CLASSNAME;
BoostPyTest();
~BoostPyTest();
};
#endif