casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Attributes
casa::TBTest Class Reference

Tests to check the validity of a table. More...

#include <TBTest.h>

Inheritance diagram for casa::TBTest:
casa::TBIDFieldsTest casa::TBSubtablesTest casa::TBValidSubtablesTest

List of all members.

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< Stringchecks (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

TBBrowserbrowser
 Browser parent.
String name
 Name of the test.

Detailed Description

Tests to check the validity of a table.

Synopsis

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.

Definition at line 54 of file TBTest.h.


Constructor & Destructor Documentation

casa::TBTest::TBTest ( TBBrowser browser,
String  name 
)

Constructor that takes the browser parent and the name of the test.

virtual casa::TBTest::~TBTest ( ) [virtual]

Member Function Documentation

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.


Member Data Documentation

Browser parent.

Definition at line 77 of file TBTest.h.

Name of the test.

Definition at line 80 of file TBTest.h.


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