casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
casa::TBTest Class Referenceabstract

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

#include <TBTest.h>

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

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

TBBrowserbrowser
 Browser parent. More...
 
casacore::String name
 Name of the test. More...
 

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 51 of file TBTest.h.

Constructor & Destructor Documentation

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

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

virtual casa::TBTest::~TBTest ( )
virtual

Member Function Documentation

virtual std::vector<casacore::String> casa::TBTest::checks ( casacore::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.

casacore::String casa::TBTest::getName ( )

Returns the name of the test.

virtual bool casa::TBTest::runCheck ( casacore::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

TBBrowser* casa::TBTest::browser
protected

Browser parent.

Definition at line 74 of file TBTest.h.

casacore::String casa::TBTest::name
protected

Name of the test.

Definition at line 77 of file TBTest.h.


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