#include <ResultHeader.h>
Inheritance diagram for SctData::ResultHeader:
Public Member Functions | |
ResultHeader (unsigned int scanNumber, unsigned int runNumber, string moduleName, const ConfigurationVariable &variable) | |
Construct a scan from it's identifying information. | |
ResultHeader () | |
Should be used for IO only. | |
virtual string | getClassName () const throw () |
Get the class name for this object. | |
virtual Sct::UniqueID | getUniqueID () const throw () |
For objects to be stored, there must be some way of identifying them. | |
unsigned int | getScanNumber () const |
void | setScanNumber (unsigned int scanNumber) |
Set the scan number. | |
unsigned int | getRunNumber () const |
void | setRunNumber (unsigned int runNumber) |
Set the run number. | |
const string & | getModuleName () const |
void | setModuleName (string name) |
Set the module name. | |
const ConfigurationVariable & | getVariable () const |
void | setVariable (const ConfigurationVariable &var) |
Set the scan variable. | |
boost::posix_time::ptime | getStartTime () const |
Get the time the operation that resulted in this object started. | |
void | setStartTime (boost::posix_time::ptime start) |
Set the time the operation that resulted in this object started. | |
boost::posix_time::ptime | getEndTime () const |
Get the time the operation that resulted in this object ended. | |
void | setEndTime (boost::posix_time::ptime start) |
Set the time the operation that resulted in this object started. | |
string | getStartTimeString () const |
Gets the start time as a string. | |
void | setStartTimeString (string start) |
Sets the start time as a string. | |
string | getEndTimeString () const |
Gets the end time as a string. | |
void | setEndTimeString (string end) |
Sets the end time as a string. | |
bool | operator== (const ResultHeader &scan) const |
Equality operator. | |
Static Public Member Functions | |
static Sct::UniqueID | getUniqueID (unsigned int runNumber, unsigned int scanNumber, const string &moduleName) |
Protected Attributes | |
unsigned int | scanNumber |
The scan number;. | |
unsigned int | runNumber |
The run number. | |
string | moduleName |
The moduleName. | |
string | startTime |
The time the operation that resulted in this object started in ISO format, UTC. | |
string | endTime |
The time the operation that resulted in this object ended in ISO format, UTC. | |
const ConfigurationVariable * | variable |
The variable that was modified in this scan. |
It is entirely defined by a run number, a scan number, a module name and a scan type. The combination of the first 3 of those should be guarenteed to be unique.
Definition at line 31 of file ResultHeader.h.
|
Construct a scan from it's identifying information.
Definition at line 15 of file ResultHeader.cpp. |
|
Should be used for IO only.
Definition at line 19 of file ResultHeader.cpp. |
|
Get the class name for this object. This is used to identify the precise type.
Implements Sct::Streamable. Definition at line 31 of file ResultHeader.cpp. |
|
Get the time the operation that resulted in this object ended.
Definition at line 52 of file ResultHeader.cpp. References endTime. |
|
Gets the end time as a string.
Definition at line 151 of file ResultHeader.h. References endTime. Referenced by SctData::IO::ResultHeaderStreamer_v1::write(). |
|
Definition at line 84 of file ResultHeader.h. Referenced by NagRootCompare::compareFits(), SctData::IO::RawScanResultStreamer_v3::createOccupancyHistogram(), SctDataDisplay::FitDisplayer::displayChannels(), SctDataDisplay::FitDisplayer::displayChips(), SctData::TestResult::getModuleName(), and SctData::IO::ResultHeaderStreamer_v1::write(). |
|
Definition at line 69 of file ResultHeader.h. Referenced by CheckRaw::compare(), NagRootCompare::compareFits(), SctData::TestResult::getRunNumber(), and SctData::IO::ResultHeaderStreamer_v1::write(). |
|
Definition at line 54 of file ResultHeader.h. Referenced by NagRootCompare::compareFits(), and SctData::IO::ResultHeaderStreamer_v1::write(). |
|
Get the time the operation that resulted in this object started.
Definition at line 43 of file ResultHeader.cpp. References startTime. |
|
Gets the start time as a string.
Definition at line 139 of file ResultHeader.h. References startTime. Referenced by SctData::IO::ResultHeaderStreamer_v1::write(). |
|
For objects to be stored, there must be some way of identifying them. This function must be implemented to return some unique identifier for objects of this precise className
Implements Sct::Serializable. Definition at line 35 of file ResultHeader.cpp. References moduleName, runNumber, and scanNumber. Referenced by SctDataDisplay::FitDisplayer::displayChannels(), SctDataDisplay::FitDisplayer::displayChips(), SctData::TestResult::getUniqueID(), SctData::RawScanResult::getUniqueID(), and SctData::FitScanResult::getUniqueID(). |
|
Definition at line 99 of file ResultHeader.h. References variable. Referenced by SctData::TestResult::getScanVariable(), and SctData::IO::ResultHeaderStreamer_v1::write(). |
|
Equality operator.
Definition at line 22 of file ResultHeader.cpp. References moduleName, runNumber, scanNumber, and variable. |
|
Set the time the operation that resulted in this object started.
|
|
Sets the end time as a string.
Definition at line 157 of file ResultHeader.h. References endTime. Referenced by SctData::IO::ResultHeaderStreamer_v1::read(). |
|
Set the module name.
Definition at line 92 of file ResultHeader.h. Referenced by SctData::IO::ResultHeaderStreamer_v1::read(). |
|
Set the run number.
Definition at line 77 of file ResultHeader.h. Referenced by SctData::IO::ResultHeaderStreamer_v1::read(). |
|
Set the scan number.
Definition at line 62 of file ResultHeader.h. Referenced by SctData::IO::ResultHeaderStreamer_v1::read(). |
|
Set the time the operation that resulted in this object started.
|
|
Sets the start time as a string.
Definition at line 145 of file ResultHeader.h. References startTime. Referenced by SctData::IO::ResultHeaderStreamer_v1::read(). |
|
Set the scan variable.
Definition at line 107 of file ResultHeader.h. References variable. Referenced by SctData::IO::ResultHeaderStreamer_v1::read(). |
|
The time the operation that resulted in this object ended in ISO format, UTC.
Definition at line 173 of file ResultHeader.h. Referenced by getEndTime(), getEndTimeString(), and setEndTimeString(). |
|
The moduleName.
Definition at line 171 of file ResultHeader.h. Referenced by getUniqueID(), and operator==(). |
|
The run number.
Definition at line 170 of file ResultHeader.h. Referenced by getUniqueID(), and operator==(). |
|
The scan number;.
Definition at line 169 of file ResultHeader.h. Referenced by getUniqueID(), and operator==(). |
|
The time the operation that resulted in this object started in ISO format, UTC.
Definition at line 172 of file ResultHeader.h. Referenced by getStartTime(), getStartTimeString(), and setStartTimeString(). |
|
The variable that was modified in this scan.
Definition at line 174 of file ResultHeader.h. Referenced by getVariable(), operator==(), and setVariable(). |