|
Mantid
|
A validator which checks that sample has the required properties. More...
#include <SampleValidator.h>
Public Types | |
| enum | Requirements { Shape = 0x1 , Material = 0x2 } |
| Enumeration describing requirements. More... | |
Public Member Functions | |
| std::string | checkValidity (const MatrixWorkspace_sptr &value) const override |
| Check if the workspace satisfies the validation requirements. More... | |
| Kernel::IValidator_sptr | clone () const override |
| std::string | getType () const |
| SampleValidator (const unsigned int flags=(Shape|Material)) | |
| Construct a validator with a set of requirements. More... | |
Private Attributes | |
| unsigned int | m_requires |
A validator which checks that sample has the required properties.
Definition at line 17 of file SampleValidator.h.
Enumeration describing requirements.
| Enumerator | |
|---|---|
| Shape | |
| Material | |
Definition at line 20 of file SampleValidator.h.
Construct a validator with a set of requirements.
| flags | A combination of SampleValidator::Requirements flags. Defaults to requiring both a shape and material |
Definition at line 21 of file SampleValidator.cpp.
|
override |
Check if the workspace satisfies the validation requirements.
| value | A pointer to a MatrixWorkspace object |
Definition at line 39 of file SampleValidator.cpp.
References m_requires, Shape, and value.
|
override |
Definition at line 31 of file SampleValidator.cpp.
| std::string Mantid::API::SampleValidator::getType | ( | ) | const |
Definition at line 26 of file SampleValidator.cpp.
|
private |
Definition at line 28 of file SampleValidator.h.
Referenced by checkValidity().