SctData::ResultHeader Class Reference

This class contains the identifying information about a scan result. More...

#include <ResultHeader.h>

Inheritance diagram for SctData::ResultHeader:

Inheritance graph
[legend]
Collaboration diagram for SctData::ResultHeader:

Collaboration graph
[legend]

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 ConfigurationVariablegetVariable () 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 ConfigurationVariablevariable
 The variable that was modified in this scan.

Detailed Description

This class contains the identifying information about a scan result.

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.

Author:
Matthew Palmer

Definition at line 31 of file ResultHeader.h.


Constructor & Destructor Documentation

SctData::ResultHeader::ResultHeader unsigned int  scanNumber,
unsigned int  runNumber,
string  moduleName,
const ConfigurationVariable variable
 

Construct a scan from it's identifying information.

Note:
Nothrow

Definition at line 15 of file ResultHeader.cpp.

SctData::ResultHeader::ResultHeader  ) 
 

Should be used for IO only.

Note:
Nothrow

Definition at line 19 of file ResultHeader.cpp.


Member Function Documentation

string SctData::ResultHeader::getClassName  )  const throw () [virtual]
 

Get the class name for this object.

This is used to identify the precise type.

Returns:
the class name
Note:
Nothrow

Implements Sct::Streamable.

Definition at line 31 of file ResultHeader.cpp.

ptime SctData::ResultHeader::getEndTime  )  const
 

Get the time the operation that resulted in this object ended.

Note:
Nothrow

Definition at line 52 of file ResultHeader.cpp.

References endTime.

string SctData::ResultHeader::getEndTimeString  )  const [inline]
 

Gets the end time as a string.

Note:
Nothrow

Definition at line 151 of file ResultHeader.h.

References endTime.

Referenced by SctData::IO::ResultHeaderStreamer_v1::write().

const string& SctData::ResultHeader::getModuleName  )  const [inline]
 

Returns:
the module name
Note:
Nothrow

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().

unsigned int SctData::ResultHeader::getRunNumber  )  const [inline]
 

Returns:
the run number
Note:
Nothrow

Definition at line 69 of file ResultHeader.h.

Referenced by CheckRaw::compare(), NagRootCompare::compareFits(), SctData::TestResult::getRunNumber(), and SctData::IO::ResultHeaderStreamer_v1::write().

unsigned int SctData::ResultHeader::getScanNumber  )  const [inline]
 

Returns:
the scan number.
Note:
Nothrow

Definition at line 54 of file ResultHeader.h.

Referenced by NagRootCompare::compareFits(), and SctData::IO::ResultHeaderStreamer_v1::write().

ptime SctData::ResultHeader::getStartTime  )  const
 

Get the time the operation that resulted in this object started.

Note:
Nothrow

Definition at line 43 of file ResultHeader.cpp.

References startTime.

string SctData::ResultHeader::getStartTimeString  )  const [inline]
 

Gets the start time as a string.

Note:
Nothrow

Definition at line 139 of file ResultHeader.h.

References startTime.

Referenced by SctData::IO::ResultHeaderStreamer_v1::write().

UniqueID SctData::ResultHeader::getUniqueID  )  const throw () [virtual]
 

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

Returns:
a unique string for this class
Exceptions:
LogicError if the class is unable to generate a uniqueID for some reason

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().

const ConfigurationVariable& SctData::ResultHeader::getVariable  )  const [inline]
 

Returns:
the scan type
Note:
Nothrow

Definition at line 99 of file ResultHeader.h.

References variable.

Referenced by SctData::TestResult::getScanVariable(), and SctData::IO::ResultHeaderStreamer_v1::write().

bool SctData::ResultHeader::operator== const ResultHeader scan  )  const
 

Equality operator.

Returns:
true if scan has the same scan number, run number, module number and scan type as this one.
Note:
Nothrow

Definition at line 22 of file ResultHeader.cpp.

References moduleName, runNumber, scanNumber, and variable.

void SctData::ResultHeader::setEndTime boost::posix_time::ptime  start  ) 
 

Set the time the operation that resulted in this object started.

Note:
Nothrow

void SctData::ResultHeader::setEndTimeString string  end  )  [inline]
 

Sets the end time as a string.

Note:
Nothrow

Definition at line 157 of file ResultHeader.h.

References endTime.

Referenced by SctData::IO::ResultHeaderStreamer_v1::read().

void SctData::ResultHeader::setModuleName string  name  )  [inline]
 

Set the module name.

Note:
Nothrow

Definition at line 92 of file ResultHeader.h.

Referenced by SctData::IO::ResultHeaderStreamer_v1::read().

void SctData::ResultHeader::setRunNumber unsigned int  runNumber  )  [inline]
 

Set the run number.

Note:
Nothrow

Definition at line 77 of file ResultHeader.h.

Referenced by SctData::IO::ResultHeaderStreamer_v1::read().

void SctData::ResultHeader::setScanNumber unsigned int  scanNumber  )  [inline]
 

Set the scan number.

Note:
Nothrow

Definition at line 62 of file ResultHeader.h.

Referenced by SctData::IO::ResultHeaderStreamer_v1::read().

void SctData::ResultHeader::setStartTime boost::posix_time::ptime  start  ) 
 

Set the time the operation that resulted in this object started.

Note:
Nothrow

void SctData::ResultHeader::setStartTimeString string  start  )  [inline]
 

Sets the start time as a string.

Note:
Nothrow

Definition at line 145 of file ResultHeader.h.

References startTime.

Referenced by SctData::IO::ResultHeaderStreamer_v1::read().

void SctData::ResultHeader::setVariable const ConfigurationVariable var  )  [inline]
 

Set the scan variable.

Note:
Nothrow

Definition at line 107 of file ResultHeader.h.

References variable.

Referenced by SctData::IO::ResultHeaderStreamer_v1::read().


Field Documentation

string SctData::ResultHeader::endTime [protected]
 

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().

string SctData::ResultHeader::moduleName [protected]
 

The moduleName.

Definition at line 171 of file ResultHeader.h.

Referenced by getUniqueID(), and operator==().

unsigned int SctData::ResultHeader::runNumber [protected]
 

The run number.

Definition at line 170 of file ResultHeader.h.

Referenced by getUniqueID(), and operator==().

unsigned int SctData::ResultHeader::scanNumber [protected]
 

The scan number;.

Definition at line 169 of file ResultHeader.h.

Referenced by getUniqueID(), and operator==().

string SctData::ResultHeader::startTime [protected]
 

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().

const ConfigurationVariable* SctData::ResultHeader::variable [protected]
 

The variable that was modified in this scan.

Definition at line 174 of file ResultHeader.h.

Referenced by getVariable(), operator==(), and setVariable().


The documentation for this class was generated from the following files:
Generated on Mon Feb 6 14:07:43 2006 for SCT DAQ/DCS Software - C++ by  doxygen 1.4.6