28 #ifndef TRIALDISPLAY_ATTVALBASE_H
29 #define TRIALDISPLAY_ATTVALBASE_H
234 virtual void print(std::ostream& os) = 0;
casacore::Bool myMatch(const AttributeValueBase &other) const
Check that private data match.
static AttValue::ValueType whatType(casacore::Vector< casacore::Quantity > *)
static AttValue::ValueType whatType(casacore::Vector< casacore::Float > *)
virtual AttributeValueBase * clone() const =0
Return a new copy of the AttributeValueBase.
static AttValue::ValueType whatType(casacore::Vector< casacore::uInt > *)
ostream & operator<<(ostream &os, const PageHeaderCache &cache)
casacore::Bool operator==(const AttributeValueBase &other) const
Check for equality (and inequality) of two objects derived from AttributeValueBase.
virtual void print(std::ostream &os)=0
Provision of type identification services for Attribute classes.
virtual Type type()
Return the type enum.
virtual casacore::Bool getStrictness() const
virtual ~AttributeValueBase()
Destructor.
casacore::Bool itsStrictness
Whether the match is strict or not.
virtual casacore::String className() const
Return class name.
ValueType
The possible value types.
virtual casacore::Bool matches(const AttributeValueBase &other) const =0
Calculate whether *this matches other.
static AttValue::ValueType whatType(casacore::Vector< casacore::Bool > *)
static AttValue::ValueType whatType(casacore::Double *)
static AttValue::ValueType whatType(casacore::Quantity *)
virtual void setType(const AttValue::ValueType &newType)
Set the type of the value stored.
static AttValue::ValueType whatType(casacore::String *)
static AttValue::ValueType whatType(casacore::Float *)
AttributeValueBase(AttValue::ValueType type, casacore::Bool strict)
Constructor.
static AttValue::ValueType whatType(void *)
virtual void operator+=(const AttributeValueBase &other)=0
Add other to *this.
static AttValue::ValueType whatType(casacore::Vector< casacore::Int > *)
bool Bool
Define the standard types used by Casacore.
Base class for values of Attributes used in the display classes.
static AttValue::ValueType whatType(casacore::Int *)
static AttValue::ValueType whatType(casacore::uInt *)
Determine the type of a scalar or casacore::Array variable.
AttValue::ValueType getType() const
Get the type of the value stored.
static AttValue::ValueType whatType(casacore::Vector< casacore::String > *)
casacore::Bool operator!=(const AttributeValueBase &other) const
static AttValue::ValueType whatType(casacore::Bool *)
String: the storage and methods of handling collections of characters.
static AttValue::ValueType whatType(casacore::Vector< casacore::Double > *)
const AttributeValueBase & operator=(const AttributeValueBase &other)
Copy assignment.
virtual void setStrictness(const casacore::Bool &newStrict)
Set/get the strictness state of this AttributeValue.
AttValue::ValueType itsValueType
The type of what is stored.