Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
test06.cc File Reference
#include <boost/python.hpp>
#include "XBase.hh"
#include "ZBase.hh"
Include dependency graph for test06.cc:

Go to the source code of this file.

Classes

struct  w_XBase
 
struct  w_ZBase
 

Functions

 BOOST_PYTHON_MODULE (test06)
 

Function Documentation

BOOST_PYTHON_MODULE ( test06  )

Definition at line 63 of file test06.cc.

63  {
64  //class_<w_XBase, boost::noncopyable>("XBase", "base class", no_init)
65  class_<w_XBase, boost::noncopyable>("XBase", "base class")
66  .add_property("ival", &XBase::GetIVal, &XBase::SetIVal)
67  .def("PVMethod", pure_virtual(&XBase::PVMethod))
68  ;
69 
70  class_<w_ZBase, boost::noncopyable>("ZBase", "base class")
71  .def("AMethod", &ZBase::AMethod)
72  .def("VMethod", &ZBase::VMethod, &w_ZBase::d_VMethod)
73  ;
74 }
virtual void VMethod(std::string message)
Definition: ZBase.cc:61
void AMethod()
Definition: ZBase.cc:54
void d_VMethod(std::string message)
Definition: test06.cc:57
int GetIVal() const
Definition: XBase.hh:65
void SetIVal(int aval)
Definition: XBase.hh:64
virtual std::string PVMethod()=0

Here is the call graph for this function: