LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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 63 of file test06.cc.

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

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 std::string PVMethod()=0
void d_VMethod(std::string message)
Definition: test06.cc:57
void AMethod()
Definition: ZBase.cc:54
virtual void VMethod(std::string message)
Definition: ZBase.cc:61
int GetIVal() const
Definition: XBase.hh:65
void SetIVal(int aval)
Definition: XBase.hh:64