15 std::ostringstream os;
21 os <<
" (weighted)\n";
24 os <<
" (weighted, no times)\n";
44IPropertyManager::getValue<Mantid::API::IEventWorkspace_sptr>(
const std::string &name)
const {
45 auto *prop =
dynamic_cast<PropertyWithValue<Mantid::API::IEventWorkspace_sptr> *
>(getPointerToProperty(name));
50 "Attempt to assign property " + name +
" to incorrect type. Expected shared_ptr<IEventWorkspace>.";
51 throw std::runtime_error(message);
57IPropertyManager::getValue<Mantid::API::IEventWorkspace_const_sptr>(
const std::string &name)
const {
58 auto *prop =
dynamic_cast<PropertyWithValue<Mantid::API::IEventWorkspace_sptr> *
>(getPointerToProperty(name));
60 return prop->operator()();
63 "Attempt to assign property " + name +
" to incorrect type. Expected const shared_ptr<IEventWorkspace>.";
64 throw std::runtime_error(message);
virtual EventType getEventType() const =0
const std::string toString() const override
Serializes the object to a string.
virtual std::size_t getNumberEvents() const =0
const std::string toString() const override
String description of state.
std::shared_ptr< const IEventWorkspace > IEventWorkspace_const_sptr
shared pointer to Mantid::API::IEventWorkspace (const version)
std::shared_ptr< IEventWorkspace > IEventWorkspace_sptr
shared pointer to Mantid::API::IEventWorkspace
Helper class which provides the Collimation Length for SANS instruments.
std::string to_string(const wide_integer< Bits, Signed > &n)