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

Go to the source code of this file.

Functions

 BOOST_PYTHON_MODULE (test01)
 

Function Documentation

BOOST_PYTHON_MODULE ( test01  )

Definition at line 44 of file test01.cc.

References AClass::AMethod(), AClass::GetDVal(), AClass::GetIVal(), AClass::SetDVal(), and AClass::SetIVal().

44  {
45  class_<AClass>( "AClass", "a simple class")
46  .def(init<>())
47  .def(init<int>())
48  .def(init<int, double>())
49  .add_property("ival", &AClass::GetIVal, &AClass::SetIVal)
50  .add_property("dval", &AClass::GetDVal, &AClass::SetDVal)
51  .def("AMethod", &AClass::AMethod)
52  ;
53 }
int GetIVal() const
Definition: AClass.hh:66
void SetDVal(double d)
Definition: AClass.hh:68
double GetDVal() const
Definition: AClass.hh:69
void SetIVal(int i)
Definition: AClass.hh:65
void AMethod()
Definition: AClass.cc:65