Mantid
Loading...
Searching...
No Matches
MDFrameValidator.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#include "MantidAPI/DllConfig.h"
12
17namespace Mantid {
18namespace API {
19class MANTID_API_DLL MDFrameValidator : public Kernel::TypedValidator<IMDWorkspace_sptr> {
20public:
21 explicit MDFrameValidator(std::string frameName);
23 std::string getType() const { return "mdframe"; }
25 Kernel::IValidator_sptr clone() const override;
26
27private:
29 std::string checkValidity(const IMDWorkspace_sptr &workspace) const override;
30
32 const std::string m_frameID;
33};
34
35} // namespace API
36} // namespace Mantid
IPeaksWorkspace_sptr workspace
Definition: IndexPeaks.cpp:114
const std::string m_frameID
The name of the required frame.
std::string getType() const
Gets the type of the validator.
std::shared_ptr< IMDWorkspace > IMDWorkspace_sptr
Shared pointer to the IMDWorkspace base class.
Definition: IMDWorkspace.h:146
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.