Mantid
Loading...
Searching...
No Matches
SampleValidator.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
10
11namespace Mantid {
12namespace API {
13
17class MANTID_API_DLL SampleValidator : public MatrixWorkspaceValidator {
18public:
20 enum Requirements { Shape = 0x1, Material = 0x2 };
21
22 SampleValidator(const unsigned int flags = (Shape | Material));
23 std::string getType() const;
24 Kernel::IValidator_sptr clone() const override;
25 std::string checkValidity(const MatrixWorkspace_sptr &value) const override;
26
27private:
28 unsigned int m_requires;
29};
30
31} // namespace API
32} // namespace Mantid
double value
The value of the point.
Definition: FitMW.cpp:51
An interface for those validators that require the MatrixWorkspace interface.
A validator which checks that sample has the required properties.
Requirements
Enumeration describing requirements.
A material is defined as being composed of a given element, defined as a PhysicalConstants::NeutronAt...
Definition: Material.h:50
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
std::shared_ptr< IValidator > IValidator_sptr
A shared_ptr to an IValidator.
Definition: IValidator.h:26
Helper class which provides the Collimation Length for SANS instruments.