28 #ifndef TRIALDISPLAY_ATTRIBUTEBUFFER_H
29 #define TRIALDISPLAY_ATTRIBUTEBUFFER_H
467 #ifndef AIPS_NO_TEMPLATE_SRC
468 #include <display/Display/AttBufferTemplates.tcc>
void setBuff(AttributeBuffer &other) const
Set the Attributes of *this to other.
void addAttributeToBuffer(Attribute *newAttribute, const casacore::Bool permanent)
Internal routine to add an Attribute to the Buffer.
const AttributeBuffer & operator=(const AttributeBuffer &other)
Assignement operator.
friend std::ostream & operator<<(std::ostream &, AttributeBuffer &)
casacore::Bool exists(const casacore::String &name) const
Check if an Attribute with name name exists.
AttributeBuffer()
Constructor of empty buffer.
ostream & operator<<(ostream &os, const PageHeaderCache &cache)
casacore::Int nelements() const
Return number of Attributes in the buffer.
Buffer for storing Attributes.
AttValue::ValueType getDataType(const casacore::String &name) const
Get the data type of the Attribute.
casacore::PtrBlock< Attribute * > attributes
casacore::PtrBlock for the Attributes.
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the if a human readable name(i.e."black").In many places throughout the plotter
Arbitrary name-value pairs used in the display classes.
ValueType
The possible value types.
Attribute * getAttribute(const casacore::String &name) const
Get the pointer to the Attribute if it exists, else get 0.
void operator+=(const AttributeBuffer &other)
AttributeBuffer addition arithmetic.
casacore::Bool matches(const Attribute &res) const
casacore::Function to see if Attribute res matches any Attribute in the AttributeBuffer *this...
~AttributeBuffer()
Destructor.
void erase()
Remove Attributes from the AttributeBuffer.
AttributeValueBase * getAttributeValue(const casacore::String &name) const
Get pointer to the AttributeValue if it exists, else get 0.
bool Bool
Define the standard types used by Casacore.
Base class for values of Attributes used in the display classes.
void set(const AttributeBuffer &otherBuf)
Set the value of an Attribute.
A drop-in replacement for Block<T*>.
void add(const AttributeBuffer &otherBuf)
Define new Attributes.
String: the storage and methods of handling collections of characters.
void addBuff(AttributeBuffer &other) const
Add the Attributes of *this to other.
casacore::Block< casacore::Bool > nonDeletable
Store if an Attribute is permamnent or not.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
casacore::Bool getValue(const casacore::String &name, casacore::Vector< T > &value) const
Get tha value of the named Attribute.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.