#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 string | 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 | |
string | 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 32 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. Referenced by SctArchiving::IOManagerDB::prepareInsertion(). |
|
Gets the end time as a string.
Definition at line 152 of file ResultHeader.h. References endTime. Referenced by SctData::IO::ResultHeaderStreamer_v1::write(). |
|
Definition at line 85 of file ResultHeader.h. Referenced by SctDataDisplay::FitDisplayer::displayChannels(), SctDataDisplay::FitDisplayer::displayChips(), and SctData::IO::ResultHeaderStreamer_v1::write(). |
|
Definition at line 70 of file ResultHeader.h. Referenced by SctData::TestResult::getRunNumber(), and SctData::IO::ResultHeaderStreamer_v1::write(). |
|
Definition at line 55 of file ResultHeader.h. Referenced by SctDataDisplay::FitDisplayer::display(), 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. Referenced by SctArchiving::IOManagerDB::prepareInsertion(). |
|
Gets the start time as a string.
Definition at line 140 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. Referenced by SctDataDisplay::FitDisplayer::display(), and SctArchiving::IOManagerDB::prepareInsertion(). |
|
Definition at line 100 of file ResultHeader.h. References variable. Referenced by SctAnalysis::StrobeDelayAlgorithm::analyze(), SctAnalysis::RxThresholdAlgorithm::analyze(), SctAnalysis::RxDelayAlgorithm::analyze(), 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.
Definition at line 56 of file ResultHeader.cpp. References endTime. |
|
Sets the end time as a string.
Definition at line 158 of file ResultHeader.h. References endTime. Referenced by SctData::IO::ResultHeaderStreamer_v1::read(). |
|
Set the module name.
Definition at line 93 of file ResultHeader.h. Referenced by SctData::IO::ResultHeaderStreamer_v1::read(). |
|
Set the run number.
Definition at line 78 of file ResultHeader.h. Referenced by SctData::IO::ResultHeaderStreamer_v1::read(). |
|
Set the scan number.
Definition at line 63 of file ResultHeader.h. Referenced by SctData::IO::ResultHeaderStreamer_v1::read(). |
|
Set the time the operation that resulted in this object started.
Definition at line 47 of file ResultHeader.cpp. References startTime. |
|
Sets the start time as a string.
Definition at line 146 of file ResultHeader.h. References startTime. Referenced by SctData::IO::ResultHeaderStreamer_v1::read(). |
|
Set the scan variable.
Definition at line 108 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 174 of file ResultHeader.h. Referenced by getEndTime(), getEndTimeString(), setEndTime(), and setEndTimeString(). |
|
The moduleName.
Definition at line 172 of file ResultHeader.h. Referenced by operator==(). |
|
The run number.
Definition at line 171 of file ResultHeader.h. Referenced by operator==(). |
|
The scan number;.
Definition at line 170 of file ResultHeader.h. Referenced by operator==(). |
|
The time the operation that resulted in this object started in ISO format, UTC.
Definition at line 173 of file ResultHeader.h. Referenced by getStartTime(), getStartTimeString(), setStartTime(), and setStartTimeString(). |
|
The variable that was modified in this scan.
Definition at line 175 of file ResultHeader.h. Referenced by getVariable(), operator==(), and setVariable(). |