Mantid
|
A validator which checks whether the input workspace has the Numeric data in the axis. More...
#include <NumericAxisValidator.h>
Public Member Functions | |
Kernel::IValidator_sptr | clone () const override |
Clone the current state. More... | |
std::string | getType () const |
Gets the type of the validator. More... | |
NumericAxisValidator (const int &axisNumber=1) | |
Class constructor with parameter. More... | |
Private Member Functions | |
std::string | checkValidity (const MatrixWorkspace_sptr &value) const override |
Check for validity. More... | |
Private Attributes | |
const int | m_axisNumber |
Axis number to check on, defaults to 1. More... | |
A validator which checks whether the input workspace has the Numeric data in the axis.
Definition at line 18 of file NumericAxisValidator.h.
|
explicit |
Class constructor with parameter.
axisNumber | :: set the axis number to validate |
Definition at line 16 of file NumericAxisValidator.cpp.
|
overrideprivate |
Check for validity.
Checks that the axis stated.
value | :: The workspace to test |
Definition at line 25 of file NumericAxisValidator.cpp.
References Mantid::API::Axis::isNumeric(), m_axisNumber, std::to_string(), and value.
|
override |
Clone the current state.
Definition at line 19 of file NumericAxisValidator.cpp.
|
inline |
Gets the type of the validator.
Definition at line 23 of file NumericAxisValidator.h.
|
private |
Axis number to check on, defaults to 1.
Definition at line 31 of file NumericAxisValidator.h.
Referenced by checkValidity().