Mantid
Loading...
Searching...
No Matches
Framework
Kernel
inc
MantidKernel
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
19
namespace
Mantid
{
20
namespace
Kernel {
21
29
class
MANTID_KERNEL_DLL
MDAxisValidator
{
30
public
:
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
35
private
:
36
std::vector<int>
m_axes
;
37
size_t
m_wsDimensions
;
38
bool
m_emptyCheck
;
39
};
40
41
}
// namespace Kernel
42
}
// namespace Mantid
Mantid::Kernel::MDAxisValidator
MDAxisValidator is a class that checks the number of MD axes match the number of workspace dimensions...
Definition:
MDAxisValidator.h:29
Mantid::Kernel::MDAxisValidator::m_wsDimensions
size_t m_wsDimensions
Definition:
MDAxisValidator.h:37
Mantid::Kernel::MDAxisValidator::m_axes
std::vector< int > m_axes
Definition:
MDAxisValidator.h:36
Mantid::Kernel::MDAxisValidator::m_emptyCheck
bool m_emptyCheck
Definition:
MDAxisValidator.h:38
Mantid::Kernel::MDAxisValidator::~MDAxisValidator
virtual ~MDAxisValidator()=default
Mantid
Helper class which provides the Collimation Length for SANS instruments.
Definition:
AbsorptionCorrection.h:18
Generated on Tue Jan 3 2023 11:57:50 for Mantid by
1.9.5