Mantid
Loading...
Searching...
No Matches
InvalidParameter.cpp
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#include <utility>
8
10
11namespace Mantid::MDAlgorithms {
13
15
16std::string InvalidParameter::getName() const { return parameterName(); }
17
18std::string InvalidParameter::getValue() const { return m_value; }
19
20bool InvalidParameter::isValid() const { return false; }
21
23
24std::string InvalidParameter::toXMLString() const {
25 throw std::runtime_error("Invalid parameters cannot be represented in xml.");
26}
27} // namespace Mantid::MDAlgorithms
const std::string & m_value
Definition: Algorithm.cpp:71
double value
The value of the point.
Definition: FitMW.cpp:51
Mantid::MDAlgorithms::InvalidParameter * clone() const override
std::string getName() const override
std::string toXMLString() const override
STL namespace.