-
Owen Arnold authored
The catalog searcher used to pre-filter out anything but raw files. This is a problem because our filtering depends on the transfer strategy. Instead. We defer the filtering util the model is displayed, and we use the TransferStrategy to tell us which files we can use in our transfer list.
Owen Arnold authoredThe catalog searcher used to pre-filter out anything but raw files. This is a problem because our filtering depends on the transfer strategy. Instead. We defer the filtering util the model is displayed, and we use the TransferStrategy to tell us which files we can use in our transfer list.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
ReflMeasureTransferStrategy.cpp 1.17 KiB
#include "MantidQtCustomInterfaces/ReflMeasureTransferStrategy.h"
#include <boost/regex.hpp>
namespace MantidQt {
namespace CustomInterfaces {
//----------------------------------------------------------------------------------------------
/** Constructor
*/
ReflMeasureTransferStrategy::ReflMeasureTransferStrategy() {}
//----------------------------------------------------------------------------------------------
/** Destructor
*/
ReflMeasureTransferStrategy::~ReflMeasureTransferStrategy() {}
std::vector<std::map<std::string, std::string>>
MantidQt::CustomInterfaces::ReflMeasureTransferStrategy::transferRuns(
const std::map<std::string, std::string> &runRows,
Mantid::Kernel::ProgressBase &progress) {
return std::vector<std::map<std::string, std::string>>(1);
}
ReflMeasureTransferStrategy *ReflMeasureTransferStrategy::clone() const {
return new ReflMeasureTransferStrategy(*this);
}
bool
ReflMeasureTransferStrategy::knownFileType(const std::string &filename) const {
boost::regex pattern("nxs$", boost::regex::icase);
boost::smatch match; // Unused.
return boost::regex_search(filename, match, pattern);
}
} // namespace CustomInterfaces
} // namespace Mantid