Mantid
|
A validator which checks that a workspace has a valid instrument. More...
#include <InstrumentValidator.h>
Public Types | |
enum | Requirements { SourcePosition = 0x1 , SamplePosition = 0x2 } |
Enumeration describing requirements. More... | |
Public Member Functions | |
std::string | checkValidity (const std::shared_ptr< ExperimentInfo > &value) const override |
Checks that the workspace has an instrument defined. More... | |
Kernel::IValidator_sptr | clone () const override |
std::string | getType () const |
InstrumentValidator (const unsigned int flags=SamplePosition) | |
Construct a validator with requirements (default = SamplePosition) More... | |
Private Attributes | |
unsigned int | m_requires |
A validator which checks that a workspace has a valid instrument.
Definition at line 21 of file InstrumentValidator.h.
Enumeration describing requirements.
Enumerator | |
---|---|
SourcePosition | |
SamplePosition |
Definition at line 24 of file InstrumentValidator.h.
Mantid::API::InstrumentValidator::InstrumentValidator | ( | const unsigned int | flags = SamplePosition | ) |
Construct a validator with requirements (default = SamplePosition)
flags | A combination of flags to specify requirements |
Definition at line 21 of file InstrumentValidator.cpp.
|
override |
Checks that the workspace has an instrument defined.
value | :: The workspace to test |
Definition at line 37 of file InstrumentValidator.cpp.
References m_requires, SamplePosition, SourcePosition, and value.
|
override |
Definition at line 31 of file InstrumentValidator.cpp.
std::string Mantid::API::InstrumentValidator::getType | ( | ) | const |
Definition at line 26 of file InstrumentValidator.cpp.
|
private |
Definition at line 33 of file InstrumentValidator.h.
Referenced by checkValidity().