Mantid
Loading...
Searching...
No Matches
OrientedLatticeValidator.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 OrientedLatticeValidator : public Kernel::TypedValidator<ExperimentInfo_sptr> {
20public:
22 std::string getType() const { return "orientedlattice"; }
24 Kernel::IValidator_sptr clone() const override;
25
26private:
28 std::string checkValidity(const ExperimentInfo_sptr &workspace) const override;
29};
30
31} // namespace API
32} // namespace Mantid
IPeaksWorkspace_sptr workspace
Definition: IndexPeaks.cpp:114
std::string getType() const
Gets the type of the validator.
std::shared_ptr< ExperimentInfo > ExperimentInfo_sptr
Shared pointer to ExperimentInfo.
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.