casa
$Rev:20696$
|
Tests to check the validity of a table. More...
#include <TBTest.h>
Public Member Functions | |
TBTest (TBBrowser *browser, String name) | |
Constructor that takes the browser parent and the name of the test. | |
virtual | ~TBTest () |
String | getName () |
Returns the name of the test. | |
virtual vector< String > | checks (String table)=0 |
checks() must be implemented by any subclass. | |
virtual bool | runCheck (String table, int i)=0 |
runCheck() must be implemented by any subclass. | |
Protected Attributes | |
TBBrowser * | browser |
Browser parent. | |
String | name |
Name of the test. |
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, |
String | name | ||
) |
Constructor that takes the browser parent and the name of the test.
virtual casa::TBTest::~TBTest | ( | ) | [virtual] |
virtual vector<String> casa::TBTest::checks | ( | String | table | ) | [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.
Returns the name of the test.
virtual bool casa::TBTest::runCheck | ( | String | table, |
int | i | ||
) | [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.
TBBrowser* casa::TBTest::browser [protected] |
String casa::TBTest::name [protected] |