LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
test06.cc File Reference
#include <boost/python.hpp>
#include "XBase.hh"
#include "ZBase.hh"

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 62 of file test06.cc.

References ZBase::AMethod(), w_ZBase::d_VMethod(), XBase::GetIVal(), XBase::PVMethod(), XBase::SetIVal(), and ZBase::VMethod().

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