Mantid
Loading...
Searching...
No Matches
MDAxisValidator.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2015 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
9//----------------------------------------------------------------------
10// Includes
11//----------------------------------------------------------------------
12#include "MantidKernel/DllConfig.h"
13#include <algorithm>
14#include <map>
15#include <string>
16#include <utility>
17#include <vector>
18
19namespace Mantid {
20namespace Kernel {
21
29class MANTID_KERNEL_DLL MDAxisValidator {
30public:
31 MDAxisValidator(std::vector<int> axes, const size_t nDimensions, const bool checkIfEmpty);
32 virtual ~MDAxisValidator() = default;
33 virtual std::map<std::string, std::string> validate() const;
34
35private:
36 std::vector<int> m_axes;
39};
40
41} // namespace Kernel
42} // namespace Mantid
MDAxisValidator is a class that checks the number of MD axes match the number of workspace dimensions...
virtual ~MDAxisValidator()=default
Helper class which provides the Collimation Length for SANS instruments.