#include <DetDesc/ValidDataObject.h>
Inheritance diagram for ValidDataObject:
Public Types | |
DEFAULT | |
ALWAYS_VALID | |
FORCE_UPDATE | |
enum | UpdateModeFlag { DEFAULT, ALWAYS_VALID, FORCE_UPDATE } |
Possible stata of the update flag. More... | |
Public Member Functions | |
ValidDataObject () | |
Default constructor. | |
ValidDataObject (const ValidDataObject &obj) | |
Copy constructor. | |
virtual void | update (ValidDataObject &obj) |
Update using another instance of this class: deep copy all contents, except for the properties of a generic DataObject. | |
virtual | ~ValidDataObject () |
Destructor. | |
virtual const CLID & | clID () const |
Class ID of this instance. | |
virtual std::ostream & | fillStream (std::ostream &s) const |
Fill the output stream (ASCII). | |
virtual bool | isValid () const |
Check if the data object has a well defined validity range. | |
virtual bool | isValid (const Gaudi::Time &t) const |
Check if the data object is valid at the specified time. | |
virtual const Gaudi::Time & | validSince () const |
Get start of validity. | |
virtual const Gaudi::Time & | validTill () const |
Get end of validity. | |
virtual void | setValidity (const Gaudi::Time &since, const Gaudi::Time &till) |
Set validity range. | |
virtual void | setValiditySince (const Gaudi::Time &since) |
Set start of validity. | |
virtual void | setValidityTill (const Gaudi::Time &till) |
Set end of validity. | |
virtual StatusCode | update () |
Update the current object and all the useds one (children, references, etc) only if needed, of course. | |
virtual const UpdateModeFlag & | updateMode () const |
Return the update mode: ValidDataObject::DEFAULT -> use the actual validity ValidDataObject::ALWAYS_VALID -> never update ValidDataObject::FORCE_UPDATE -> force an update even if still valid (then back to DEFAULT behaviour). | |
virtual void | setUpdateMode (UpdateModeFlag mode) |
Set the mode for update. | |
virtual void | defaultUpdateMode () |
virtual void | forceUpdateMode () |
virtual void | neverUpdateMode () |
void | setRegistry (IRegistry *pRegistry) |
IRegistry * | registry () const |
LinkManager * | linkMgr () const |
unsigned char | version () const |
void | setVersion (unsigned char vsn) |
unsigned long | refCount () const |
virtual unsigned long | addRef () |
virtual unsigned long | release () |
const std::string & | name () const |
virtual StreamBuffer & | serialize (StreamBuffer &s) |
virtual StreamBuffer & | serialize (StreamBuffer &s) const |
Static Public Member Functions | |
static const CLID & | classID () |
Class ID of this class. | |
Private Attributes | |
Gaudi::Time | m_validSince |
Start of validity. | |
Gaudi::Time | m_validUntil |
End of validity. | |
UpdateModeFlag | m_updateMode |
Flag to force/inhibit the update regardless of the validity. | |
Friends | |
friend std::ostream & | operator<< (std::ostream &s, const DataObject &obj) |
Definition at line 29 of file ValidDataObject.h.
Possible stata of the update flag.
Definition at line 102 of file ValidDataObject.h.
00102 { 00103 DEFAULT, 00104 ALWAYS_VALID, 00105 FORCE_UPDATE 00106 };
ValidDataObject::ValidDataObject | ( | ) |
Default constructor.
ValidDataObject::ValidDataObject | ( | const ValidDataObject & | obj | ) |
Copy constructor.
virtual ValidDataObject::~ValidDataObject | ( | ) | [virtual] |
Destructor.
virtual void ValidDataObject::update | ( | ValidDataObject & | obj | ) | [virtual] |
Update using another instance of this class: deep copy all contents, except for the properties of a generic DataObject.
Reimplemented in Condition, ParamValidDataObject, and TabulatedProperty.
virtual const CLID& ValidDataObject::clID | ( | ) | const [inline, virtual] |
Class ID of this instance.
Reimplemented from DataObject.
Reimplemented in AlignmentCondition, Condition, DetectorElement, LAssembly, LVolume, and TabulatedProperty.
Definition at line 59 of file ValidDataObject.h.
00059 { return classID(); }
static const CLID& ValidDataObject::classID | ( | ) | [inline, static] |
Class ID of this class.
Reimplemented from DataObject.
Reimplemented in AlignmentCondition, Condition, DetectorElement, LAssembly, LVolume, and TabulatedProperty.
Definition at line 62 of file ValidDataObject.h.
00062 { return CLID_ValidDataObject; }
virtual std::ostream& ValidDataObject::fillStream | ( | std::ostream & | s | ) | const [virtual] |
Fill the output stream (ASCII).
Reimplemented from DataObject.
Reimplemented in AlignmentCondition, ParamValidDataObject, and TabulatedProperty.
virtual bool ValidDataObject::isValid | ( | ) | const [virtual] |
virtual bool ValidDataObject::isValid | ( | const Gaudi::Time & | t | ) | const [virtual] |
virtual const Gaudi::Time& ValidDataObject::validSince | ( | ) | const [virtual] |
virtual const Gaudi::Time& ValidDataObject::validTill | ( | ) | const [virtual] |
virtual void ValidDataObject::setValidity | ( | const Gaudi::Time & | since, | |
const Gaudi::Time & | till | |||
) | [virtual] |
virtual void ValidDataObject::setValiditySince | ( | const Gaudi::Time & | since | ) | [virtual] |
virtual void ValidDataObject::setValidityTill | ( | const Gaudi::Time & | till | ) | [virtual] |
virtual StatusCode ValidDataObject::update | ( | ) | [virtual] |
Update the current object and all the useds one (children, references, etc) only if needed, of course.
This method must be reimplemented for more complex objects.
virtual const UpdateModeFlag& ValidDataObject::updateMode | ( | ) | const [virtual] |
Return the update mode: ValidDataObject::DEFAULT -> use the actual validity
ValidDataObject::ALWAYS_VALID -> never update ValidDataObject::FORCE_UPDATE -> force an update even if still valid (then back to DEFAULT behaviour).
virtual void ValidDataObject::setUpdateMode | ( | UpdateModeFlag | mode | ) | [virtual] |
Set the mode for update.
virtual void ValidDataObject::defaultUpdateMode | ( | ) | [virtual] |
virtual void ValidDataObject::forceUpdateMode | ( | ) | [virtual] |
virtual void ValidDataObject::neverUpdateMode | ( | ) | [virtual] |
Gaudi::Time ValidDataObject::m_validSince [private] |
Gaudi::Time ValidDataObject::m_validUntil [private] |
UpdateModeFlag ValidDataObject::m_updateMode [private] |
Flag to force/inhibit the update regardless of the validity.
Definition at line 133 of file ValidDataObject.h.