#include <CalibTest1.h>
Inheritance diagram for CalibData::CalibTest1:
Public Member Functions | |
CalibTest1 (const CalibTest1 &other) | |
CalibTest1 (const std::string &name, int value, const ITime &since, const ITime &till, int serNo=-1) | |
CalibTest1 (const CalibTest1 &other) | |
CalibTest1 (const std::string &name, int value, const ITime &since, const ITime &till, int serNo=-1) | |
virtual const CLID & | clID () const |
Class ID of this instance. | |
virtual const CLID & | clID () const |
Class ID of this instance. | |
virtual int | getSerNo () const |
virtual int | getSerNo () const |
virtual const CalibTime * | getValidEnd () const |
virtual const CalibTime * | getValidEnd () const |
virtual const CalibTime * | getValidStart () const |
virtual const CalibTime * | getValidStart () const |
int | getValue () const |
int | getValue () const |
std::string | getValueName () const |
std::string | getValueName () const |
virtual bool | isValid (const ITime &t) |
Check if the data object is valid at the specified time. | |
virtual bool | isValid () |
Check if the data object has a well defined validity range. | |
virtual bool | isValid (const ITime &t) |
Check if the data object is valid at the specified time. | |
virtual bool | isValid () |
Check if the data object has a well defined validity range. | |
virtual void | setValidity (const ITime &since, const ITime &till) |
Set validity range. | |
virtual void | setValidity (const ITime &since, const ITime &till) |
Set validity range. | |
virtual void | setValiditySince (const ITime &since) |
Set start of validity. | |
virtual void | setValiditySince (const ITime &since) |
Set start of validity. | |
virtual void | setValidityTill (const ITime &till) |
Set end of validity. | |
virtual void | setValidityTill (const ITime &till) |
Set end of validity. | |
virtual StatusCode | update (CalibBase &other, MsgStream *log) |
Following is intended for deep copy. | |
virtual StatusCode | update (CalibBase &other, MsgStream *log) |
Following is intended for deep copy. | |
virtual StatusCode | updateValidity () |
Update the validity range (foreseen for tree-like structures). | |
virtual StatusCode | updateValidity () |
Update the validity range (foreseen for tree-like structures). | |
virtual const ITime & | validSince () |
Get start of validity. | |
virtual const ITime & | validSince () |
Get start of validity. | |
virtual const ITime & | validTill () |
Get end of validity. | |
virtual const ITime & | validTill () |
Get end of validity. | |
virtual | ~CalibTest1 () |
virtual | ~CalibTest1 () |
Static Public Member Functions | |
const CLID & | classID () |
Class ID of this class. | |
const CLID & | classID () |
Class ID of this class. | |
Protected Member Functions | |
void | setSerNo (int ser) |
void | setSerNo (int ser) |
Protected Attributes | |
int | m_serNo |
Serial number of corresponding metadata row. | |
CalibTime * | m_validSince |
Start of validity. | |
CalibTime * | m_validSince |
Start of validity. | |
CalibTime * | m_validTill |
End of validity. | |
CalibTime * | m_validTill |
End of validity. | |
Private Attributes | |
std::string | m_name |
int | m_value |
|
00013 : 00014 CalibBase(since, till, serNo), m_name(name), m_value(value) 00015 { 00016 // m_me = this; 00017 }
|
|
|
|
00026 {}
|
|
|
|
|
|
00026 {}
|
|
Class ID of this class.
Reimplemented from CalibData::CalibBase. 00031 { return CLID_Calib_CalibTest1; };
|
|
Class ID of this class.
Reimplemented from CalibData::CalibBase. 00031 { return CLID_Calib_CalibTest1; };
|
|
Class ID of this instance.
Reimplemented from CalibData::CalibBase. 00029 { return classID(); }
|
|
Class ID of this instance.
Reimplemented from CalibData::CalibBase. 00029 { return classID(); }
|
|
Get serial number of metadata row corresponding to calibration. Can be used by clients to determine if object has been updated since last access. 00084 {return m_serNo;}
|
|
Get serial number of metadata row corresponding to calibration. Can be used by clients to determine if object has been updated since last access. 00084 {return m_serNo;}
|
|
00087 {return m_validTill;}
|
|
00087 {return m_validTill;}
|
|
00086 {return m_validSince;}
|
|
00086 {return m_validSince;}
|
|
00038 {return m_value;}
|
|
00038 {return m_value;}
|
|
|
|
00036 {
00037 return m_name;
00038 }
|
|
Check if the data object is valid at the specified time.
|
|
Check if the data object has a well defined validity range.
|
|
Check if the data object is valid at the specified time.
00062 { 00063 if (!isValid()) return false; 00064 return validSince() <= t && t <= validTill(); 00065 }
|
|
Check if the data object has a well defined validity range.
00047 { 00048 return ((m_validSince != 0) && (m_validTill != 0) 00049 && (validSince() <= validTill()) ); 00050 }
|
|
00104 { m_serNo = ser;}
|
|
00104 { m_serNo = ser;}
|
|
Set validity range.
|
|
Set validity range.
00075 { 00076 setValiditySince(since); 00077 setValidityTill(till); 00078 }
|
|
Set start of validity.
|
|
Set start of validity.
00080 { 00081 delete m_validSince; 00082 m_validSince = new CalibTime(since); 00083 }
|
|
Set end of validity.
|
|
Set end of validity.
00085 { 00086 delete m_validTill; 00087 m_validTill = new CalibTime(till); 00088 }
|
|
Following is intended for deep copy.
Reimplemented from CalibData::CalibBase. |
|
Following is intended for deep copy.
Reimplemented from CalibData::CalibBase. 00020 { 00021 // The following dynamic_cast has got to work 00022 CalibTest1& other1 = dynamic_cast<CalibTest1& >(other); 00023 00024 CalibBase::update(other1, log); 00025 m_name = other1.m_name; 00026 m_value = other1.m_value; 00027 00028 return StatusCode::SUCCESS; 00029 }
|
|
Update the validity range (foreseen for tree-like structures).
|
|
Update the validity range (foreseen for tree-like structures).
00090 {
00091 return StatusCode::SUCCESS;
00092 }
|
|
Get start of validity.
|
|
Get start of validity.
00067 {
00068 return *m_validSince;
00069 }
|
|
Get end of validity.
|
|
Get end of validity.
00071 {
00072 return *m_validTill;
00073 }
|
|
|
|
Serial number of corresponding metadata row.
|
|
Start of validity.
|
|
Start of validity.
|
|
End of validity.
|
|
End of validity.
|
|
|