#include <CalibBase.h>
Public Member Functions | |
CalibBase () | |
CalibBase (const CalibBase &obj) | |
virtual StatusCode | update (CalibBase &obj, MsgStream *) |
Following is intended for deep copy. | |
virtual | ~CalibBase () |
virtual const CLID & | clID () const |
Class ID of this instance. | |
virtual int | getSerNo () const |
Check if the data object has a well defined validity range. | |
Static Public Member Functions | |
static const CLID & | classID () |
Class ID of this class. | |
Protected Member Functions | |
void | setSerNo (int ser) |
Protected Attributes | |
int | m_serNo |
Serial number of corresponding metadata row. | |
Friends | |
class | XmlBaseCnv |
class | RootBaseCnv |
Definition at line 30 of file CalibBase.h.
CalibData::CalibBase::CalibBase | ( | ) |
CalibBase::CalibBase | ( | const CalibBase & | obj | ) |
Definition at line 22 of file CalibBase.cxx.
References m_serNo, and EvtCyclic3::other().
00022 : 00023 DataObject( (DataObject&) other) { 00024 // m_validSince = other.m_validSince; 00025 // m_validTill = other.m_validTill; 00026 m_serNo = other.m_serNo; 00027 }
CalibBase::~CalibBase | ( | ) | [virtual] |
static const CLID& CalibData::CalibBase::classID | ( | ) | [inline, static] |
Class ID of this class.
Definition at line 51 of file CalibBase.h.
References CLID_Calib_CalibBase.
Referenced by clID().
00051 { return CLID_Calib_CalibBase; };
virtual const CLID& CalibData::CalibBase::clID | ( | ) | const [inline, virtual] |
Class ID of this instance.
Definition at line 48 of file CalibBase.h.
References classID().
00048 { return classID(); }
virtual int CalibData::CalibBase::getSerNo | ( | ) | const [inline, virtual] |
Check if the data object has a well defined validity range.
Get serial number of metadata row corresponding to calibration. Can be used by clients to determine if object has been updated since last access.
Definition at line 84 of file CalibBase.h.
References m_serNo.
00084 {return m_serNo;}
void CalibData::CalibBase::setSerNo | ( | int | ser | ) | [inline, protected] |
Definition at line 104 of file CalibBase.h.
References m_serNo.
Referenced by XmlBaseCnv::setBaseInfo().
00104 { m_serNo = ser;}
StatusCode CalibBase::update | ( | CalibBase & | obj, | |
MsgStream * | ||||
) | [virtual] |
Following is intended for deep copy.
Definition at line 35 of file CalibBase.cxx.
References m_serNo.
00035 { 00036 /* 00037 delete m_validSince; 00038 delete m_validTill; 00039 00040 m_validTill = new CalibData::CalibTime(obj.validTill() ); 00041 00042 m_validSince = new CalibData::CalibTime(obj.validSince() );*/ 00043 m_serNo = obj.m_serNo; 00044 return StatusCode::SUCCESS; 00045 }
friend class RootBaseCnv [friend] |
Definition at line 34 of file CalibBase.h.
friend class XmlBaseCnv [friend] |
Definition at line 33 of file CalibBase.h.
int CalibData::CalibBase::m_serNo [protected] |
Serial number of corresponding metadata row.
Definition at line 102 of file CalibBase.h.
Referenced by CalibBase(), getSerNo(), setSerNo(), and update().