10#include <boost/python/class.hpp>
11#include <boost/python/enum.hpp>
12#include <boost/python/return_value_policy.hpp>
19 enum_<Mantid::Kernel::DeltaEMode::Type>(
"DeltaEModeType")
25 class_<DeltaEMode, boost::noncopyable>(
"DeltaEMode", no_init)
26 .def(
"asString", &
DeltaEMode::asString, arg(
"self"),
"Returns the given type translated to a string")
28 "Returns the enumerated type translated from a string")
30 "Returns a list of known delta E Modes as strings")
31 .staticmethod(
"availableTypes");
Defines the possible energy transfer modes:
static std::string asString(const Type mode)
Return a string representation of the given mode.
static const std::vector< std::string > availableTypes()
Returns the string list of available modes.
static Type fromString(const std::string &modeStr)
Returns the emode from the given string.