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 std::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

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 51 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 std::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::TBIDFieldsTest, casa::TBSubtablesTest, and casa::TBValidSubtablesTest.

String casa::TBTest::getName (  ) 

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::TBIDFieldsTest, casa::TBSubtablesTest, and casa::TBValidSubtablesTest.


Member Data Documentation

Browser parent.

Definition at line 74 of file TBTest.h.

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1