Mantid
Loading...
Searching...
No Matches
InvalidParameterParser.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 +
9#include <boost/algorithm/string.hpp>
10#include <utility>
11
12namespace Mantid::MDAlgorithms {
14
16
18 std::string sParameterValue = parameterElement->getChildElement("Value")->innerText();
19 return parseInvalidParameter(sParameterValue);
20}
21
23 return new InvalidParameter(std::move(value));
24}
25
27 UNUSED_ARG(parser);
28 // Do nothing. No successor allowed.
29}
30} // namespace Mantid::MDAlgorithms
double value
The value of the point.
Definition: FitMW.cpp:51
#define DECLARE_IMPLICIT_FUNCTION_PARAMETER_PARSER(classname)
#define UNUSED_ARG(x)
Function arguments are sometimes unused in certain implmentations but are required for documentation ...
Definition: System.h:64
Abstract parameter type for use with IImplicitFunctions.
InvalidParameter * parseInvalidParameter(std::string value)
void setSuccessorParser(Mantid::API::ImplicitFunctionParameterParser *parser) override
Mantid::API::ImplicitFunctionParameter * createParameter(Poco::XML::Element *parameterElement) override