diff --git a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/PeakShape.cpp b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/PeakShape.cpp new file mode 100644 index 000000000000..f9f1bff388c7 --- /dev/null +++ b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/PeakShape.cpp @@ -0,0 +1,19 @@ +#include "MantidGeometry/Crystal/PeakShape.h" +#include +#include + +using Mantid::Geometry::PeakShape; +using namespace boost::python; + + +void export_PeakShape() +{ + register_ptr_to_python(); + + class_("PeakShape", no_init) + .def("toJSON", &PeakShape::toJSON, "Serialize object to JSON") + .def("shapeName", &PeakShape::shapeName, "Shape name for type of shape") + .def("algorithmVersion", &PeakShape::algorithmVersion, "Number of source integration algorithm version") + .def("algorithmName", &PeakShape::algorithmName, "Name of source integration algorithm") + ; +}