Skip to content

Commit

Permalink
Add export of Facility* to python.
Browse files Browse the repository at this point in the history
Needed for using those returned from config.getFacilities. Refs #6667
  • Loading branch information
martyngigg committed Jul 18, 2013
1 parent a10f39f commit dfc89c4
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "MantidKernel/FacilityInfo.h"
#include <boost/python/class.hpp>
#include <boost/python/copy_const_reference.hpp>
#include <boost/python/register_ptr_to_python.hpp>

using Mantid::Kernel::FacilityInfo;
using Mantid::Kernel::InstrumentInfo;
Expand All @@ -9,6 +10,8 @@ using namespace boost::python;
void export_FacilityInfo()
{

register_ptr_to_python<FacilityInfo*>();

class_<FacilityInfo>("FacilityInfo", no_init)

.def("name", &FacilityInfo::name, return_value_policy<copy_const_reference>(),
Expand Down

0 comments on commit dfc89c4

Please sign in to comment.