Mantid
|
A validator which checks that a workspace contains raw counts in its bins. More...
#include <RawCountValidator.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... | |
RawCountValidator (const bool &mustNotBeDistribution=true) | |
Constructor. More... | |
Private Member Functions | |
std::string | checkValidity (const MatrixWorkspace_sptr &value) const override |
Check for validity. More... | |
Private Attributes | |
const bool | m_mustNotBeDistribution |
A flag indicating whether this validator requires that the workspace must be a distribution (false) or not (true, the default) More... | |
A validator which checks that a workspace contains raw counts in its bins.
Definition at line 16 of file RawCountValidator.h.
|
explicit |
Constructor.
mustNotBeDistribution | :: Flag indicating whether the check is that a workspace should not be a distribution (true, default) or should be (false). |
Definition at line 17 of file RawCountValidator.cpp.
|
overrideprivate |
Check for validity.
Checks if the workspace must be a distribution but isn't and vice-versa.
value | :: The workspace to test |
Definition at line 28 of file RawCountValidator.cpp.
References m_mustNotBeDistribution, and value.
|
override |
Clone the current state.
Definition at line 21 of file RawCountValidator.cpp.
|
inline |
Gets the type of the validator.
Definition at line 21 of file RawCountValidator.h.
|
private |
A flag indicating whether this validator requires that the workspace must be a distribution (false) or not (true, the default)
Definition at line 31 of file RawCountValidator.h.
Referenced by checkValidity().