Mantid
|
A validator which checks that a workspace contains histogram data (the default) or point data as required. More...
#include <HistogramValidator.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... | |
HistogramValidator (const bool &mustBeHistogram=true) | |
Constructor. More... | |
Private Member Functions | |
std::string | checkValidity (const MatrixWorkspace_sptr &value) const override |
Check for validity. More... | |
Private Attributes | |
const bool | m_mustBeHistogram |
A flag indicating whether this validator requires that the workspace be a histogram (true) or not. More... | |
A validator which checks that a workspace contains histogram data (the default) or point data as required.
Definition at line 18 of file HistogramValidator.h.
|
explicit |
Constructor.
mustBeHistogram | :: Flag indicating whether the check is that a workspace should contain histogram data (true, default) or shouldn't (false). |
Definition at line 18 of file HistogramValidator.cpp.
|
overrideprivate |
Check for validity.
Checks if the workspace contains a histogram when it shouldn't and vice-versa.
value | :: The workspace to test |
Definition at line 29 of file HistogramValidator.cpp.
References m_mustBeHistogram, and value.
|
override |
Clone the current state.
Definition at line 22 of file HistogramValidator.cpp.
|
inline |
Gets the type of the validator.
Definition at line 23 of file HistogramValidator.h.
|
private |
A flag indicating whether this validator requires that the workspace be a histogram (true) or not.
Definition at line 33 of file HistogramValidator.h.
Referenced by checkValidity().