Skip to content
Snippets Groups Projects
PreprocessMap.cpp 1.2 KiB
Newer Older
#include "MantidQtWidgets/Common/DataProcessorUI/PreprocessMap.h"

namespace MantidQt {
namespace MantidWidgets {
namespace DataProcessor {
PreprocessMap::PreprocessMap() : m_map() {}
PreprocessMap::~PreprocessMap() {}

/** Add a column that needs pre-processing
* @param column :: the name of the column that needs pre-processing
* @param algorithm :: the name of the pre-processing algorithm that will be
* applied to that column
* @param prefix :: a list with the prefix(es) to be added to the output
* workspace(s), as a string
* @param blacklist :: the list of algorithm properties to black list, as a
* string
*/
void PreprocessMap::addElement(const QString &column,
                                            const QString &algorithm,
                                            const QString &prefix,
                                            const QString &blacklist) {
  m_map[column] =
      PreprocessingAlgorithm(algorithm, prefix, blacklist);
}

/** Return a map where keys are columns and values pre-processing algorithms
* @return :: Pre-processing instructions as a map
*/
std::map<QString, PreprocessingAlgorithm>
PreprocessMap::asMap() const {