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(),
",");
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,...