#include <DetDesc/TabulatedProperty.h>
Inheritance diagram for TabulatedProperty:
Public Types | |
typedef std::pair< double, double > | Entry |
typedef std::vector< Entry > | Table |
DEFAULT | |
ALWAYS_VALID | |
FORCE_UPDATE | |
enum | UpdateModeFlag { DEFAULT, ALWAYS_VALID, FORCE_UPDATE } |
Possible stata of the update flag. More... | |
Public Member Functions | |
TabulatedProperty (const std::string &Name="") | |
constructor | |
virtual | ~TabulatedProperty () |
virtual const CLID & | clID () const |
Class ID of this instance. | |
virtual std::ostream & | fillStream (std::ostream &s) const |
Fill the output stream (ASCII). | |
virtual MsgStream & | fillStream (MsgStream &s) const |
Fill the output stream (ASCII). | |
const std::string & | type () const |
acessors to property type | |
TabulatedProperty & | setType (const std::string &T) |
const std::string & | xAxis () const |
acessors to name of x-axis | |
TabulatedProperty & | setXAxis (const std::string &T) |
const std::string & | yAxis () const |
acessors to name of y-axis | |
TabulatedProperty & | setYAxis (const std::string &T) |
Table & | table () |
acessors to the table itself | |
const Table & | table () const |
operator Table & () | |
another form of accessors to table | |
operator const Table & () const | |
template<class Func, class Iter> | |
const StatusCode | fill (Func func, Iter first, Iter last) |
Fill a table from the function. | |
virtual std::string | toXml (const std::string &name=std::string()) const |
Prepare an XML string representing the object. | |
virtual void | update (ValidDataObject &obj) |
Perform a deep copy (needed for usage in CondDB). | |
virtual StatusCode | update () |
Update the current object and all the useds one (children, references, etc) only if needed, of course. | |
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 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 | |
std::string | m_type |
std::string | m_xAxis |
std::string | m_yAxis |
Table | m_table |
Friends | |
friend std::ostream & | operator<< (std::ostream &s, const DataObject &obj) |
Primary intended to describe optical properties of materials and surfaces (requests from RICH group). But since it is quite general it could be used for other similar stuff.
Definition at line 28 of file TabulatedProperty.h.
typedef std::pair<double,double> TabulatedProperty::Entry |
Definition at line 33 of file TabulatedProperty.h.
typedef std::vector<Entry> TabulatedProperty::Table |
Definition at line 34 of file TabulatedProperty.h.
enum ValidDataObject::UpdateModeFlag [inherited] |
Possible stata of the update flag.
Definition at line 102 of file ValidDataObject.h.
00102 { 00103 DEFAULT, 00104 ALWAYS_VALID, 00105 FORCE_UPDATE 00106 };
TabulatedProperty::TabulatedProperty | ( | const std::string & | Name = "" |
) |
constructor
virtual TabulatedProperty::~TabulatedProperty | ( | ) | [virtual] |
virtual const CLID& TabulatedProperty::clID | ( | ) | const [inline, virtual] |
Class ID of this instance.
Reimplemented from ValidDataObject.
Definition at line 41 of file TabulatedProperty.h.
00041 { return TabulatedProperty::classID() ; }
static const CLID& TabulatedProperty::classID | ( | ) | [inline, static] |
Class ID of this class.
Reimplemented from ValidDataObject.
Definition at line 42 of file TabulatedProperty.h.
00042 { return CLID_TabulatedProperty ; }
virtual std::ostream& TabulatedProperty::fillStream | ( | std::ostream & | s | ) | const [virtual] |
Fill the output stream (ASCII).
const std::string& TabulatedProperty::type | ( | ) | const [inline] |
acessors to property type
TabulatedProperty& TabulatedProperty::setType | ( | const std::string & | T | ) | [inline] |
const std::string& TabulatedProperty::xAxis | ( | ) | const [inline] |
acessors to name of x-axis
TabulatedProperty& TabulatedProperty::setXAxis | ( | const std::string & | T | ) | [inline] |
const std::string& TabulatedProperty::yAxis | ( | ) | const [inline] |
acessors to name of y-axis
TabulatedProperty& TabulatedProperty::setYAxis | ( | const std::string & | T | ) | [inline] |
Table& TabulatedProperty::table | ( | ) | [inline] |
acessors to the table itself
const Table& TabulatedProperty::table | ( | ) | const [inline] |
TabulatedProperty::operator Table & | ( | ) | [inline] |
another form of accessors to table
TabulatedProperty::operator const Table & | ( | ) | const [inline] |
const StatusCode TabulatedProperty::fill | ( | Func | func, | |
Iter | first, | |||
Iter | last | |||
) | [inline] |
Fill a table from the function.
func | The function. It could the the type of function, pointer to function, STL adaptor for member function, STL functional or any type of functor or function object | |
first | "Iterator"(in STL sence) to a first element in a "sequence" | |
last | "Iterator"(in STL sence) to a (last+1) element in a "sequence" |
virtual std::string TabulatedProperty::toXml | ( | const std::string & | name = std::string() |
) | const [virtual] |
Prepare an XML string representing the object.
virtual void TabulatedProperty::update | ( | ValidDataObject & | obj | ) | [virtual] |
Perform a deep copy (needed for usage in CondDB).
A GaudiException is thrown if the object is not a TabulatedProperty.
Reimplemented from ValidDataObject.
virtual StatusCode ValidDataObject::update | ( | ) | [virtual, inherited] |
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 bool ValidDataObject::isValid | ( | ) | const [virtual, inherited] |
virtual bool ValidDataObject::isValid | ( | const Gaudi::Time & | t | ) | const [virtual, inherited] |
virtual const Gaudi::Time& ValidDataObject::validSince | ( | ) | const [virtual, inherited] |
virtual const Gaudi::Time& ValidDataObject::validTill | ( | ) | const [virtual, inherited] |
virtual void ValidDataObject::setValidity | ( | const Gaudi::Time & | since, | |
const Gaudi::Time & | till | |||
) | [virtual, inherited] |
virtual void ValidDataObject::setValiditySince | ( | const Gaudi::Time & | since | ) | [virtual, inherited] |
virtual void ValidDataObject::setValidityTill | ( | const Gaudi::Time & | till | ) | [virtual, inherited] |
virtual const UpdateModeFlag& ValidDataObject::updateMode | ( | ) | const [virtual, inherited] |
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, inherited] |
Set the mode for update.
virtual void ValidDataObject::defaultUpdateMode | ( | ) | [virtual, inherited] |
virtual void ValidDataObject::forceUpdateMode | ( | ) | [virtual, inherited] |
virtual void ValidDataObject::neverUpdateMode | ( | ) | [virtual, inherited] |
std::string TabulatedProperty::m_type [private] |
Definition at line 84 of file TabulatedProperty.h.
std::string TabulatedProperty::m_xAxis [private] |
Definition at line 86 of file TabulatedProperty.h.
std::string TabulatedProperty::m_yAxis [private] |
Definition at line 88 of file TabulatedProperty.h.
Table TabulatedProperty::m_table [private] |
Definition at line 90 of file TabulatedProperty.h.