Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | List of all members
Mantid::DataObjects::TableWorkspaceNotEmptyValidator Class Reference

A validator which checks that the table workspace is not empty. More...

#include <TableWorkspaceNotEmptyValidator.h>

Inheritance diagram for Mantid::DataObjects::TableWorkspaceNotEmptyValidator:
Mantid::DataObjects::TableWorkspaceValidator

Public Member Functions

Kernel::IValidator_sptr clone () const override
 Clone the current state.
 
std::string getType () const
 Gets the type of the validator.
 
 TableWorkspaceNotEmptyValidator ()
 Constructor.
 

Private Member Functions

std::string checkValidity (const TableWorkspace_sptr &value) const override
 Check for validity.
 

Detailed Description

A validator which checks that the table workspace is not empty.

Definition at line 17 of file TableWorkspaceNotEmptyValidator.h.

Constructor & Destructor Documentation

◆ TableWorkspaceNotEmptyValidator()

Mantid::DataObjects::TableWorkspaceNotEmptyValidator::TableWorkspaceNotEmptyValidator ( )
explicit

Constructor.

Definition at line 16 of file TableWorkspaceNotEmptyValidator.cpp.

Member Function Documentation

◆ checkValidity()

std::string Mantid::DataObjects::TableWorkspaceNotEmptyValidator::checkValidity ( const TableWorkspace_sptr value) const
overrideprivate

Check for validity.

Checks that the workspace is not empty.

Returns
A user level description of the error or "" for no error

Definition at line 29 of file TableWorkspaceNotEmptyValidator.cpp.

References value.

◆ clone()

Kernel::IValidator_sptr Mantid::DataObjects::TableWorkspaceNotEmptyValidator::clone ( ) const
override

Clone the current state.

Definition at line 21 of file TableWorkspaceNotEmptyValidator.cpp.

◆ getType()

std::string Mantid::DataObjects::TableWorkspaceNotEmptyValidator::getType ( ) const
inline

Gets the type of the validator.

Definition at line 21 of file TableWorkspaceNotEmptyValidator.h.


The documentation for this class was generated from the following files: