38 const auto inst =
value->getInstrument();
40 return "The workspace must have an instrument defined";
42 std::list<std::string> missing;
44 missing.emplace_back(
"source");
47 missing.emplace_back(
"sample holder");
53 return "The instrument is missing the following "
55 join(missing.begin(), missing.end(),
",");
double value
The value of the point.
std::string checkValidity(const std::shared_ptr< ExperimentInfo > &value) const override
Checks that the workspace has an instrument defined.
InstrumentValidator(const unsigned int flags=SamplePosition)
Construct a validator with requirements (default = SamplePosition)
Kernel::IValidator_sptr clone() const override
std::string getType() const
DLLExport std::string join(ITERATOR_TYPE begin, ITERATOR_TYPE end, const std::string &separator, typename std::enable_if<!(std::is_same< typename std::iterator_traits< ITERATOR_TYPE >::iterator_category, std::random_access_iterator_tag >::value)>::type *=nullptr)
Join a set or vector of (something that turns into a string) together into one string,...
std::shared_ptr< IValidator > IValidator_sptr
A shared_ptr to an IValidator.