Mantid
Loading...
Searching...
No Matches
WorkspaceHasDxValidator.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 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#include "MantidAPI/DllConfig.h"
10
12
13namespace Mantid {
14namespace API {
15
19class MANTID_API_DLL WorkspaceHasDxValidator final : public MatrixWorkspaceValidator {
20public:
21 Kernel::IValidator_sptr clone() const override;
22
23private:
24 std::string checkValidity(MatrixWorkspace_sptr const &ws) const override;
25};
26
27} // namespace API
28} // namespace Mantid
An interface for those validators that require the MatrixWorkspace interface.
WorkspaceHasDxValidator : A validator which checks that all histograms in a workspace have Dx values.
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.