#include <Test.h>
Public Member Functions | |||
Test (const TestData &data) | |||
Construct a Test. | |||
~Test () | |||
Removes the TestData object from IS. | |||
void | addScan (Sct_SctApi_T_Scan *scan) | ||
Adds a Scan to this Test. | |||
const TestData & | getData () const | ||
Get access to the underlying TestData. | |||
void | setStatus (TestData::status_E status) | ||
Set the status of this Test - see TestData. | |||
string | getUniqueID () const | ||
Returns a uniqueID for this Test - used for the name in IS. | |||
Sct_SctApi_T_Scan * | getScan (unsigned int index) const | ||
Retrieve one of the constituent Scans
| |||
Private Types | |||
typedef vector< Sct_SctApi_T_Scan * > | ScanVector | ||
A vector of Scans! | |||
Private Member Functions | |||
void | publish () | ||
Publish or update the TestData object in IS. | |||
void | withdraw () | ||
Remove the TestData object from IS. | |||
Private Attributes | |||
TestData | data | ||
Most of the underlying data. | |||
ScanVector | scans | ||
The constituent Scans. |
It contains references to the Scans that made it up and also the TestData object that is available in IS.
Definition at line 22 of file Test.h.
|
A vector of Scans!
|
|
Construct a Test. Puts data into IS.
Definition at line 12 of file Test.cpp. References data, getUniqueID(), TestData::nScans, publish(), TestData::testPoints, and TestData::testPoints_size. |
|
Removes the TestData object from IS.
Definition at line 25 of file Test.cpp. References withdraw(). |
|
Adds a Scan to this Test. You may only add the correct number of Scans.
Definition at line 29 of file Test.cpp. References data, getUniqueID(), TestData::nScans, and scans. |
|
Get access to the underlying TestData.
Definition at line 35 of file Test.cpp. References data. |
|
Retrieve one of the constituent Scans
Definition at line 45 of file Test.cpp. References getUniqueID(), and scans. |
|
Returns a uniqueID for this Test - used for the name in IS.
Definition at line 39 of file Test.cpp. References data, TestData::runNumber, and TestData::startScanNumber. Referenced by addScan(), getScan(), publish(), setStatus(), Test(), and withdraw(). |
|
Publish or update the TestData object in IS. Won't throw - just reports errors Definition at line 69 of file Test.cpp. References data, and getUniqueID(). Referenced by setStatus(), and Test(). |
|
Set the status of this Test - see TestData. A Test may only have the COMPLETED state if all the Scans have been added. Once a Test has entered the ABORTED or COMPLETED states, it cannot be changed.
Definition at line 54 of file Test.cpp. References TestData::ABORTED, TestData::COMPLETED, data, TestData::EXECUTING, getUniqueID(), TestData::nScans, publish(), scans, and TestData::status. |
|
Remove the TestData object from IS. Won't throw - just reports errors Definition at line 88 of file Test.cpp. References getUniqueID(). Referenced by ~Test(). |
|
Most of the underlying data.
Definition at line 83 of file Test.h. Referenced by addScan(), getData(), getUniqueID(), publish(), setStatus(), and Test(). |
|
The constituent Scans.
Definition at line 85 of file Test.h. Referenced by addScan(), getScan(), and setStatus(). |