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

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

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