casa
5.7.0-16
|
Tests to check the validity of a table. More...
#include <TBTest.h>
Public Member Functions | |
TBTest (TBBrowser *browser, casacore::String name) | |
Constructor that takes the browser parent and the name of the test. More... | |
virtual | ~TBTest () |
casacore::String | getName () |
Returns the name of the test. More... | |
virtual std::vector < casacore::String > | checks (casacore::String table)=0 |
checks() must be implemented by any subclass. More... | |
virtual bool | runCheck (casacore::String table, int i)=0 |
runCheck() must be implemented by any subclass. More... | |
Protected Attributes | |
TBBrowser * | browser |
Browser parent. More... | |
casacore::String | name |
Name of the test. More... | |
Tests to check the validity of a table.
TBTest is an abstract superclass for any class that wants to test the validity of a table. A "test" can be thought of as a series of checks, or smaller tests. Although currently only basic tests are implemented, more complex tests could be added in the future; for example, a check to make sure the table has a valid structure if it is a Measurement Set.
casa::TBTest::TBTest | ( | TBBrowser * | browser, |
casacore::String | name | ||
) |
Constructor that takes the browser parent and the name of the test.
|
virtual |
|
pure virtual |
checks() must be implemented by any subclass.
Returns a list of the names of the checks in this test, given the name of the table on which the test will be run.
Implemented in casa::TBValidSubtablesTest, casa::TBSubtablesTest, and casa::TBIDFieldsTest.
casacore::String casa::TBTest::getName | ( | ) |
Returns the name of the test.
|
pure virtual |
runCheck() must be implemented by any subclass.
Runs the given check on the given table and returns the result.
Implemented in casa::TBValidSubtablesTest, casa::TBSubtablesTest, and casa::TBIDFieldsTest.
|
protected |