16using namespace Kernel;
19 std::ostringstream os;
22 os <<
"Crystallography: kf-ki";
24 os <<
"Inelastic: ki-kf";
38IPropertyManager::getValue<Mantid::API::IPeaksWorkspace_sptr>(
const std::string &name)
const {
44 "Attempt to assign property " + name +
" to incorrect type. Expected shared_ptr<PeaksWorkspace>.";
45 throw std::runtime_error(message);
51IPropertyManager::getValue<Mantid::API::IPeaksWorkspace_const_sptr>(
const std::string &name)
const {
52 auto *prop =
dynamic_cast<PropertyWithValue<Mantid::API::IPeaksWorkspace_sptr> *
>(getPointerToProperty(name));
54 return prop->operator()();
57 "Attempt to assign property " + name +
" to incorrect type. Expected const shared_ptr<PeaksWorkspace>.";
58 throw std::runtime_error(message);
const std::string toString() const
Returns a string description of the object.
const std::string toString() const override
Serializes the object to a string.
const std::string toString() const override
Serializes the object to a string.
The concrete, templated class for properties.
std::shared_ptr< IPeaksWorkspace > IPeaksWorkspace_sptr
shared pointer to Mantid::API::IPeaksWorkspace
std::shared_ptr< const IPeaksWorkspace > IPeaksWorkspace_const_sptr
shared pointer to Mantid::API::IPeaksWorkspace (const version)